| Index: public/web/WebServiceWorkerGlobalScopeProxy.h
|
| diff --git a/Source/web/WorkerFileSystemClient.h b/public/web/WebServiceWorkerGlobalScopeProxy.h
|
| similarity index 72%
|
| copy from Source/web/WorkerFileSystemClient.h
|
| copy to public/web/WebServiceWorkerGlobalScopeProxy.h
|
| index 2c29ccd3dc10746502e3afe43fe5d90ad1633df9..940dd16664050e67020c642f0603aa5536833b40 100644
|
| --- a/Source/web/WorkerFileSystemClient.h
|
| +++ b/public/web/WebServiceWorkerGlobalScopeProxy.h
|
| @@ -28,27 +28,25 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WorkerFileSystemClient_h
|
| -#define WorkerFileSystemClient_h
|
| -
|
| -#include "modules/filesystem/FileSystemClient.h"
|
| -#include "wtf/Forward.h"
|
| +#ifndef WebServiceWorkerGlobalScopeProxy_h
|
| +#define WebServiceWorkerGlobalScopeProxy_h
|
|
|
| namespace WebKit {
|
|
|
| -// FIXME: This could be probably unified into non-worker FileSystemClient
|
| -// implementation.
|
| -class WorkerFileSystemClient : public WebCore::FileSystemClient {
|
| +// A proxy interface to talk to the ServiceWorker's GlobalScopeProxy
|
| +// implementation. All methods of this class must be called on the worker
|
| +// thread.
|
| +class WebServiceWorkerGlobalScopeProxy {
|
| public:
|
| - static PassOwnPtr<FileSystemClient> create();
|
| - virtual ~WorkerFileSystemClient();
|
| -
|
| - virtual bool allowFileSystem(WebCore::ExecutionContext*) OVERRIDE;
|
| + // FIXME: Add service worker specific upcalls.
|
|
|
| -private:
|
| - WorkerFileSystemClient();
|
| + virtual void resumeWorkerContext() { }
|
| + virtual void attachDevTools() { }
|
| + virtual void reattachDevTools(const WebString& savedState) { }
|
| + virtual void detachDevTools() { }
|
| + virtual void dispatchDevToolsMessage(const WebString&) { }
|
| };
|
|
|
| } // namespace WebKit
|
|
|
| -#endif // WorkerFileSystemClient_h
|
| +#endif // WebServiceWorkerGlobalScopeProxy_h
|
|
|