Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: public/web/WebServiceWorkerGlobalScopeProxy.h

Issue 61763004: Add EmbeddedWorker interfaces in Blink API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« public/web/WebEmbeddedWorkerClient.h ('K') | « public/web/WebEmbeddedWorkerStartMode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698