|
Lines 43-48
Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h_sec1
|
| 43 |
#include <wtf/text/WTFString.h> |
43 |
#include <wtf/text/WTFString.h> |
| 44 |
|
44 |
|
| 45 |
namespace WebCore { |
45 |
namespace WebCore { |
|
|
46 |
class BlobDataHandle; |
| 46 |
class WorkerLoaderProxy; |
47 |
class WorkerLoaderProxy; |
| 47 |
} |
48 |
} |
| 48 |
|
49 |
|
|
Lines 52-58
class AsyncFileSystem;
Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h_sec2
|
| 52 |
class MainThreadFileSystemCallbacks; |
53 |
class MainThreadFileSystemCallbacks; |
| 53 |
class WebCommonWorkerClient; |
54 |
class WebCommonWorkerClient; |
| 54 |
class ThreadableCallbacksBridgeWrapper; |
55 |
class ThreadableCallbacksBridgeWrapper; |
| 55 |
class WebFileSystemCallbacks; |
56 |
class WebFileSystemCallbacksImpl; |
| 56 |
class WorkerFileSystemContextObserver; |
57 |
class WorkerFileSystemContextObserver; |
| 57 |
struct WebFileInfo; |
58 |
struct WebFileInfo; |
| 58 |
struct WebFileSystemEntry; |
59 |
struct WebFileSystemEntry; |
|
Lines 77-83
public:
Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h_sec3
|
| 77 |
|
78 |
|
| 78 |
void stop(); |
79 |
void stop(); |
| 79 |
|
80 |
|
| 80 |
static PassRefPtr<WorkerFileSystemCallbacksBridge> create(WebCore::WorkerLoaderProxy* workerLoaderProxy, WebCore::ScriptExecutionContext* workerContext, WebFileSystemCallbacks* callbacks) |
81 |
static PassRefPtr<WorkerFileSystemCallbacksBridge> create(WebCore::WorkerLoaderProxy* workerLoaderProxy, WebCore::ScriptExecutionContext* workerContext, WebFileSystemCallbacksImpl* callbacks) |
| 81 |
{ |
82 |
{ |
| 82 |
return adoptRef(new WorkerFileSystemCallbacksBridge(workerLoaderProxy, workerContext, callbacks)); |
83 |
return adoptRef(new WorkerFileSystemCallbacksBridge(workerLoaderProxy, workerContext, callbacks)); |
| 83 |
} |
84 |
} |
|
Lines 94-110
public:
Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h_sec4
|
| 94 |
void postFileExistsToMainThread(WebFileSystem*, const WebCore::KURL& path, const String& mode); |
95 |
void postFileExistsToMainThread(WebFileSystem*, const WebCore::KURL& path, const String& mode); |
| 95 |
void postDirectoryExistsToMainThread(WebFileSystem*, const WebCore::KURL& path, const String& mode); |
96 |
void postDirectoryExistsToMainThread(WebFileSystem*, const WebCore::KURL& path, const String& mode); |
| 96 |
void postReadDirectoryToMainThread(WebFileSystem*, const WebCore::KURL& path, const String& mode); |
97 |
void postReadDirectoryToMainThread(WebFileSystem*, const WebCore::KURL& path, const String& mode); |
| 97 |
void postCreateSnapshotFileToMainThread(WebFileSystem*, const WebCore::KURL& internalBlobURL, const WebCore::KURL& path, const String& mode); |
98 |
void postCreateSnapshotFileToMainThread(WebFileSystem*, const WebCore::KURL& path, const String& mode); |
| 98 |
|
99 |
|
| 99 |
// Callback methods that are called on the main thread. |
100 |
// Callback methods that are called on the main thread. |
| 100 |
void didFailOnMainThread(WebFileError, const String& mode); |
101 |
void didFailOnMainThread(WebFileError, const String& mode); |
| 101 |
void didOpenFileSystemOnMainThread(const String& name, const WebCore::KURL& rootURL, const String& mode); |
102 |
void didOpenFileSystemOnMainThread(const String& name, const WebCore::KURL& rootURL, const String& mode); |
| 102 |
void didSucceedOnMainThread(const String& mode); |
103 |
void didSucceedOnMainThread(const String& mode); |
| 103 |
void didReadMetadataOnMainThread(const WebFileInfo&, const String& mode); |
104 |
void didReadMetadataOnMainThread(const WebFileInfo&, const String& mode); |
|
|
105 |
void didCreateSnapshotFileOnMainThread(const WebFileInfo&, const String& mode, PassRefPtr<WebCore::BlobDataHandle> snapshotBlob); |
| 104 |
void didReadDirectoryOnMainThread(const WebVector<WebFileSystemEntry>&, bool hasMore, const String& mode); |
106 |
void didReadDirectoryOnMainThread(const WebVector<WebFileSystemEntry>&, bool hasMore, const String& mode); |
| 105 |
|
107 |
|
| 106 |
private: |
108 |
private: |
| 107 |
WorkerFileSystemCallbacksBridge(WebCore::WorkerLoaderProxy*, WebCore::ScriptExecutionContext*, WebFileSystemCallbacks*); |
109 |
WorkerFileSystemCallbacksBridge(WebCore::WorkerLoaderProxy*, WebCore::ScriptExecutionContext*, WebFileSystemCallbacksImpl*); |
| 108 |
|
110 |
|
| 109 |
// Methods that are to be called on the main thread. |
111 |
// Methods that are to be called on the main thread. |
| 110 |
static void openFileSystemOnMainThread(WebCore::ScriptExecutionContext*, WebCommonWorkerClient*, WebFileSystem::Type, long long size, bool create, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
112 |
static void openFileSystemOnMainThread(WebCore::ScriptExecutionContext*, WebCommonWorkerClient*, WebFileSystem::Type, long long size, bool create, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
|
Lines 118-124
private:
Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h_sec5
|
| 118 |
static void fileExistsOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
120 |
static void fileExistsOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
| 119 |
static void directoryExistsOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
121 |
static void directoryExistsOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
| 120 |
static void readDirectoryOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
122 |
static void readDirectoryOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
| 121 |
static void createSnapshotFileOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& internalBlobURL, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
123 |
static void createSnapshotFileOnMainThread(WebCore::ScriptExecutionContext*, WebFileSystem*, const WebCore::KURL& path, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& mode); |
| 122 |
|
124 |
|
| 123 |
friend class MainThreadFileSystemCallbacks; |
125 |
friend class MainThreadFileSystemCallbacks; |
| 124 |
|
126 |
|
|
Lines 127-132
private:
Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h_sec6
|
| 127 |
static void didOpenFileSystemOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& name, const WebCore::KURL& rootPath); |
129 |
static void didOpenFileSystemOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, const String& name, const WebCore::KURL& rootPath); |
| 128 |
static void didSucceedOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>); |
130 |
static void didSucceedOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>); |
| 129 |
static void didReadMetadataOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, const WebFileInfo&); |
131 |
static void didReadMetadataOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, const WebFileInfo&); |
|
|
132 |
static void didCreateSnapshotFileOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, const WebFileInfo&, PassRefPtr<WebCore::BlobDataHandle> snapshotBlob); |
| 130 |
static void didReadDirectoryOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, const WebVector<WebFileSystemEntry>&, bool hasMore); |
133 |
static void didReadDirectoryOnWorkerThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, const WebVector<WebFileSystemEntry>&, bool hasMore); |
| 131 |
|
134 |
|
| 132 |
static void runTaskOnMainThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, PassOwnPtr<WebCore::ScriptExecutionContext::Task>); |
135 |
static void runTaskOnMainThread(WebCore::ScriptExecutionContext*, PassRefPtr<WorkerFileSystemCallbacksBridge>, PassOwnPtr<WebCore::ScriptExecutionContext::Task>); |
|
Lines 146-152
private:
Source/WebKit/chromium/src/WorkerFileSystemCallbacksBridge.h_sec7
|
| 146 |
WorkerFileSystemContextObserver* m_workerContextObserver; |
149 |
WorkerFileSystemContextObserver* m_workerContextObserver; |
| 147 |
|
150 |
|
| 148 |
// This is self-destructed and must be fired on the worker thread. |
151 |
// This is self-destructed and must be fired on the worker thread. |
| 149 |
WebFileSystemCallbacks* m_callbacksOnWorkerThread; |
152 |
WebFileSystemCallbacksImpl* m_callbacksOnWorkerThread; |
| 150 |
}; |
153 |
}; |
| 151 |
|
154 |
|
| 152 |
} // namespace WebCore |
155 |
} // namespace WebCore |