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

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

Issue 1146063005: BackgroundSync sync events need to be ExtendableEvents, content side cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@486890-syncevent-tests
Patch Set: Rebase Created 5 years, 6 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
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 blink::WebServiceWorkerEventResult result); 109 blink::WebServiceWorkerEventResult result);
110 virtual void didHandleFetchEvent(int request_id); 110 virtual void didHandleFetchEvent(int request_id);
111 virtual void didHandleFetchEvent( 111 virtual void didHandleFetchEvent(
112 int request_id, 112 int request_id,
113 const blink::WebServiceWorkerResponse& response); 113 const blink::WebServiceWorkerResponse& response);
114 virtual void didHandleNotificationClickEvent( 114 virtual void didHandleNotificationClickEvent(
115 int request_id, 115 int request_id,
116 blink::WebServiceWorkerEventResult result); 116 blink::WebServiceWorkerEventResult result);
117 virtual void didHandlePushEvent(int request_id, 117 virtual void didHandlePushEvent(int request_id,
118 blink::WebServiceWorkerEventResult result); 118 blink::WebServiceWorkerEventResult result);
119 // TODO(chasej): crbug.com/486890 - Remove when matching blink changes land
120 virtual void didHandleSyncEvent(int request_id);
121 virtual void didHandleSyncEvent(int request_id, 119 virtual void didHandleSyncEvent(int request_id,
122 blink::WebServiceWorkerEventResult result); 120 blink::WebServiceWorkerEventResult result);
123 virtual void didHandleCrossOriginConnectEvent(int request_id, 121 virtual void didHandleCrossOriginConnectEvent(int request_id,
124 bool accept_connection); 122 bool accept_connection);
125 123
126 // Called on the main thread. 124 // Called on the main thread.
127 virtual blink::WebServiceWorkerNetworkProvider* 125 virtual blink::WebServiceWorkerNetworkProvider*
128 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source); 126 createServiceWorkerNetworkProvider(blink::WebDataSource* data_source);
129 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider(); 127 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider();
130 128
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 std::map<int, base::TimeTicks> install_start_timings_; 226 std::map<int, base::TimeTicks> install_start_timings_;
229 std::map<int, base::TimeTicks> notification_click_start_timings_; 227 std::map<int, base::TimeTicks> notification_click_start_timings_;
230 std::map<int, base::TimeTicks> push_start_timings_; 228 std::map<int, base::TimeTicks> push_start_timings_;
231 229
232 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 230 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
233 }; 231 };
234 232
235 } // namespace content 233 } // namespace content
236 234
237 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 235 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/service_worker/service_worker_context_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698