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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 2767093004: Implement the BackgroundFetch{Fail,ed} Service Worker events (Closed)
Patch Set: add missing uma 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 createDevToolsMessageLoop() override; 140 createDevToolsMessageLoop() override;
141 void didHandleActivateEvent(int request_id, 141 void didHandleActivateEvent(int request_id,
142 blink::WebServiceWorkerEventResult, 142 blink::WebServiceWorkerEventResult,
143 double dispatch_event_time) override; 143 double dispatch_event_time) override;
144 void didHandleBackgroundFetchAbortEvent(int request_id, 144 void didHandleBackgroundFetchAbortEvent(int request_id,
145 blink::WebServiceWorkerEventResult, 145 blink::WebServiceWorkerEventResult,
146 double dispatch_event_time) override; 146 double dispatch_event_time) override;
147 void didHandleBackgroundFetchClickEvent(int request_id, 147 void didHandleBackgroundFetchClickEvent(int request_id,
148 blink::WebServiceWorkerEventResult, 148 blink::WebServiceWorkerEventResult,
149 double dispatch_event_time) override; 149 double dispatch_event_time) override;
150 void didHandleBackgroundFetchFailEvent(int request_id,
151 blink::WebServiceWorkerEventResult,
152 double dispatch_event_time) override;
153 void didHandleBackgroundFetchedEvent(int request_id,
154 blink::WebServiceWorkerEventResult,
155 double dispatch_event_time) override;
150 void didHandleExtendableMessageEvent( 156 void didHandleExtendableMessageEvent(
151 int request_id, 157 int request_id,
152 blink::WebServiceWorkerEventResult result, 158 blink::WebServiceWorkerEventResult result,
153 double dispatch_event_time) override; 159 double dispatch_event_time) override;
154 void didHandleInstallEvent(int request_id, 160 void didHandleInstallEvent(int request_id,
155 blink::WebServiceWorkerEventResult result, 161 blink::WebServiceWorkerEventResult result,
156 double event_dispatch_time) override; 162 double event_dispatch_time) override;
157 void respondToFetchEvent(int fetch_event_id, 163 void respondToFetchEvent(int fetch_event_id,
158 double event_dispatch_time) override; 164 double event_dispatch_time) override;
159 void respondToFetchEvent(int fetch_event_id, 165 void respondToFetchEvent(int fetch_event_id,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // mojom::ServiceWorkerEventDispatcher 225 // mojom::ServiceWorkerEventDispatcher
220 void DispatchActivateEvent( 226 void DispatchActivateEvent(
221 const DispatchActivateEventCallback& callback) override; 227 const DispatchActivateEventCallback& callback) override;
222 void DispatchBackgroundFetchAbortEvent( 228 void DispatchBackgroundFetchAbortEvent(
223 const std::string& tag, 229 const std::string& tag,
224 const DispatchBackgroundFetchAbortEventCallback& callback) override; 230 const DispatchBackgroundFetchAbortEventCallback& callback) override;
225 void DispatchBackgroundFetchClickEvent( 231 void DispatchBackgroundFetchClickEvent(
226 const std::string& tag, 232 const std::string& tag,
227 mojom::BackgroundFetchState state, 233 mojom::BackgroundFetchState state,
228 const DispatchBackgroundFetchClickEventCallback& callback) override; 234 const DispatchBackgroundFetchClickEventCallback& callback) override;
235 void DispatchBackgroundFetchFailEvent(
236 const std::string& tag,
237 const std::vector<BackgroundFetchSettledFetch>& fetches,
238 const DispatchBackgroundFetchFailEventCallback& callback) override;
239 void DispatchBackgroundFetchedEvent(
240 const std::string& tag,
241 const std::vector<BackgroundFetchSettledFetch>& fetches,
242 const DispatchBackgroundFetchedEventCallback& callback) override;
229 void DispatchExtendableMessageEvent( 243 void DispatchExtendableMessageEvent(
230 mojom::ExtendableMessageEventPtr event, 244 mojom::ExtendableMessageEventPtr event,
231 const DispatchExtendableMessageEventCallback& callback) override; 245 const DispatchExtendableMessageEventCallback& callback) override;
232 void DispatchFetchEvent(int fetch_event_id, 246 void DispatchFetchEvent(int fetch_event_id,
233 const ServiceWorkerFetchRequest& request, 247 const ServiceWorkerFetchRequest& request,
234 mojom::FetchEventPreloadHandlePtr preload_handle, 248 mojom::FetchEventPreloadHandlePtr preload_handle,
235 const DispatchFetchEventCallback& callback) override; 249 const DispatchFetchEventCallback& callback) override;
236 void DispatchNotificationClickEvent( 250 void DispatchNotificationClickEvent(
237 const std::string& notification_id, 251 const std::string& notification_id,
238 const PlatformNotificationData& notification_data, 252 const PlatformNotificationData& notification_data,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // Initialized on the worker thread in workerContextStarted and 336 // Initialized on the worker thread in workerContextStarted and
323 // destructed on the worker thread in willDestroyWorkerContext. 337 // destructed on the worker thread in willDestroyWorkerContext.
324 std::unique_ptr<WorkerContextData> context_; 338 std::unique_ptr<WorkerContextData> context_;
325 339
326 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 340 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
327 }; 341 };
328 342
329 } // namespace content 343 } // namespace content
330 344
331 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 345 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698