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

Side by Side Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 2748213003: Service Worker event dispatcher for Background Fetch (Closed)
Patch Set: uma fix Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* 127 virtual WebDevToolsAgentClient::WebKitClientMessageLoop*
128 createDevToolsMessageLoop() { 128 createDevToolsMessageLoop() {
129 return nullptr; 129 return nullptr;
130 } 130 }
131 131
132 // ServiceWorker specific method. 132 // ServiceWorker specific method.
133 virtual void didHandleActivateEvent(int eventID, 133 virtual void didHandleActivateEvent(int eventID,
134 WebServiceWorkerEventResult result, 134 WebServiceWorkerEventResult result,
135 double eventDispatchTime) {} 135 double eventDispatchTime) {}
136 136
137 // ServiceWorker specific method. Called after Background Fetch events
138 // (dispatched via WebServiceWorkerContextProxy) is handled by the
139 // ServiceWorker's script context.
140 virtual void didHandleBackgroundFetchAbortEvent(
141 int eventID,
142 WebServiceWorkerEventResult result,
143 double eventDispatchTime) {}
144 virtual void didHandleBackgroundFetchClickEvent(
145 int eventID,
146 WebServiceWorkerEventResult result,
147 double eventDispatchTime) {}
148
137 // Called after ExtendableMessageEvent is handled by the ServiceWorker's 149 // Called after ExtendableMessageEvent is handled by the ServiceWorker's
138 // script context. 150 // script context.
139 virtual void didHandleExtendableMessageEvent( 151 virtual void didHandleExtendableMessageEvent(
140 int eventID, 152 int eventID,
141 WebServiceWorkerEventResult result, 153 WebServiceWorkerEventResult result,
142 double eventDispatchTime) {} 154 double eventDispatchTime) {}
143 155
144 // ServiceWorker specific methods. respondFetchEvent will be called after 156 // ServiceWorker specific methods. respondFetchEvent will be called after
145 // FetchEvent returns a response by the ServiceWorker's script context, and 157 // FetchEvent returns a response by the ServiceWorker's script context, and
146 // didHandleFetchEvent will be called after the end of FetchEvent's 158 // didHandleFetchEvent will be called after the end of FetchEvent's
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // Called when the worker wants to register subscopes to handle via foreign 287 // Called when the worker wants to register subscopes to handle via foreign
276 // fetch. Will only be called while an install event is in progress. 288 // fetch. Will only be called while an install event is in progress.
277 virtual void registerForeignFetchScopes( 289 virtual void registerForeignFetchScopes(
278 const WebVector<WebURL>& subScopes, 290 const WebVector<WebURL>& subScopes,
279 const WebVector<WebSecurityOrigin>& origins) = 0; 291 const WebVector<WebSecurityOrigin>& origins) = 0;
280 }; 292 };
281 293
282 } // namespace blink 294 } // namespace blink
283 295
284 #endif // WebServiceWorkerContextClient_h 296 #endif // WebServiceWorkerContextClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698