Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / public / web / WebServiceWorkerContextClient.h
index 0a78746..21199d6 100644 (file)
@@ -40,6 +40,7 @@
 namespace blink {
 
 class WebDataSource;
+class WebServiceWorkerCacheStorage;
 class WebServiceWorkerContextProxy;
 class WebServiceWorkerNetworkProvider;
 class WebServiceWorkerResponse;
@@ -57,6 +58,9 @@ class WebServiceWorkerContextClient {
 public:
     virtual ~WebServiceWorkerContextClient() { }
 
+    // ServiceWorker specific method.
+    virtual WebServiceWorkerCacheStorage* cacheStorage() { return 0; }
+
     // ServiceWorker specific method. Called when script accesses the
     // the |scope| attribute of the ServiceWorkerGlobalScope. Immutable per spec.
     virtual WebURL scope() const { return WebURL(); }
@@ -98,12 +102,12 @@ public:
     virtual void saveDevToolsAgentState(const WebString&) { }
 
     // ServiceWorker specific method.
-    virtual void didHandleActivateEvent(int eventID, blink::WebServiceWorkerEventResult result) { }
+    virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult result) { }
 
     // ServiceWorker specific method. Called after InstallEvent (dispatched
     // via WebServiceWorkerContextProxy) is handled by the ServiceWorker's
     // script context.
-    virtual void didHandleInstallEvent(int installEventID, blink::WebServiceWorkerEventResult result) { }
+    virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEventResult result) { }
 
     // ServiceWorker specific methods. Called after FetchEvent is handled by the
     // ServiceWorker's script context. When no response is provided, the browser
@@ -117,7 +121,7 @@ public:
     virtual void didHandleSyncEvent(int syncEventID) { }
 
     // Ownership of the returned object is transferred to the caller.
-    virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(blink::WebDataSource*) { return 0; }
+    virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider(WebDataSource*) { return 0; }
 
     // Ownership of the passed callbacks is transferred to the callee, callee
     // should delete the callbacks after calling either onSuccess or onError.
@@ -132,4 +136,4 @@ public:
 
 } // namespace blink
 
-#endif // WebWorkerContextClient_h
+#endif // WebServiceWorkerContextClient_h