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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h

Issue 180843003: Start to implement FetchEvent for ServiceWorker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing Created 6 years, 10 months 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: Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h b/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
index 9b8437f3202cdc1d7b3c739613fee6421c792f8e..4b01763f0c3fd90706e5dd6b34bc2665b9cc23cb 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScopeClient.h
@@ -38,6 +38,7 @@
namespace WebCore {
class ExecutionContext;
+class Response;
class WorkerClients;
class ServiceWorkerGlobalScopeClient : public Supplement<WorkerClients> {
@@ -46,6 +47,8 @@ public:
virtual ~ServiceWorkerGlobalScopeClient() { }
virtual void didHandleInstallEvent(int installEventID) = 0;
+ // A null response means no valid response was provided by the service worker, so fallback to native.
+ virtual void didHandleFetchEvent(int fetchEventID, PassRefPtr<Response> = nullptr) = 0;
static const char* supplementName();
static ServiceWorkerGlobalScopeClient* from(ExecutionContext*);
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerGlobalScope.h ('k') | Source/web/ServiceWorkerGlobalScopeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698