Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / serviceworkers / ServiceWorkerGlobalScopeClient.h
index 5b41542..e4a7f32 100644 (file)
@@ -43,8 +43,8 @@
 namespace blink {
 
 class ExecutionContext;
-class Response;
 class WebServiceWorkerCacheStorage;
+class WebServiceWorkerResponse;
 class WebURL;
 class WorkerClients;
 
@@ -59,8 +59,10 @@ public:
 
     virtual void didHandleActivateEvent(int eventID, WebServiceWorkerEventResult) = 0;
     virtual void didHandleInstallEvent(int installEventID, WebServiceWorkerEventResult) = 0;
-    // A null response means no valid response was provided by the service worker, so fallback to native.
-    virtual void didHandleFetchEvent(int fetchEventID, PassRefPtrWillBeRawPtr<Response> = nullptr) = 0;
+    // Calling didHandleFetchEvent without response means no response was
+    // provided by the service worker in the fetch events, so fallback to native.
+    virtual void didHandleFetchEvent(int fetchEventID) = 0;
+    virtual void didHandleFetchEvent(int fetchEventID, const WebServiceWorkerResponse&) = 0;
     virtual void didHandleSyncEvent(int syncEventID) = 0;
     virtual void postMessageToClient(int clientID, const WebString& message, PassOwnPtr<WebMessagePortChannelArray>) = 0;