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

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

Issue 1230213004: [Background Sync] Sent sync registration details to worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bgsync-event-mek
Patch Set: Use constref rather than pointer for FireOneShotSync Created 5 years, 5 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 18 matching lines...) Expand all
29 class TaskRunner; 29 class TaskRunner;
30 } 30 }
31 31
32 namespace blink { 32 namespace blink {
33 struct WebCircularGeofencingRegion; 33 struct WebCircularGeofencingRegion;
34 struct WebCrossOriginServiceWorkerClient; 34 struct WebCrossOriginServiceWorkerClient;
35 class WebDataSource; 35 class WebDataSource;
36 struct WebServiceWorkerClientQueryOptions; 36 struct WebServiceWorkerClientQueryOptions;
37 class WebServiceWorkerContextProxy; 37 class WebServiceWorkerContextProxy;
38 class WebServiceWorkerProvider; 38 class WebServiceWorkerProvider;
39 struct WebSyncRegistration;
39 } 40 }
40 41
41 namespace IPC { 42 namespace IPC {
42 class Message; 43 class Message;
43 } 44 }
44 45
45 namespace content { 46 namespace content {
46 47
47 struct NavigatorConnectClient; 48 struct NavigatorConnectClient;
48 struct PlatformNotificationData; 49 struct PlatformNotificationData;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 const blink::WebString& message, 146 const blink::WebString& message,
146 blink::WebMessagePortChannelArray* channels); 147 blink::WebMessagePortChannelArray* channels);
147 virtual void focus(const blink::WebString& uuid, 148 virtual void focus(const blink::WebString& uuid,
148 blink::WebServiceWorkerClientCallbacks*); 149 blink::WebServiceWorkerClientCallbacks*);
149 virtual void skipWaiting( 150 virtual void skipWaiting(
150 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks); 151 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks);
151 virtual void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks); 152 virtual void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks);
152 virtual void stashMessagePort(blink::WebMessagePortChannel* channel, 153 virtual void stashMessagePort(blink::WebMessagePortChannel* channel,
153 const blink::WebString& name); 154 const blink::WebString& name);
154 155
155 virtual void DispatchSyncEvent(const SyncCallback& callback); 156 virtual void DispatchSyncEvent(const blink::WebSyncRegistration& registration,
157 const SyncCallback& callback);
156 158
157 private: 159 private:
158 struct WorkerContextData; 160 struct WorkerContextData;
159 161
160 // Get routing_id for sending message to the ServiceWorkerVersion 162 // Get routing_id for sending message to the ServiceWorkerVersion
161 // in the browser process. 163 // in the browser process.
162 int GetRoutingID() const { return embedded_worker_id_; } 164 int GetRoutingID() const { return embedded_worker_id_; }
163 165
164 void Send(IPC::Message* message); 166 void Send(IPC::Message* message);
165 void SendWorkerStarted(); 167 void SendWorkerStarted();
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Initialized on the worker thread in workerContextStarted and 232 // Initialized on the worker thread in workerContextStarted and
231 // destructed on the worker thread in willDestroyWorkerContext. 233 // destructed on the worker thread in willDestroyWorkerContext.
232 scoped_ptr<WorkerContextData> context_; 234 scoped_ptr<WorkerContextData> context_;
233 235
234 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 236 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
235 }; 237 };
236 238
237 } // namespace content 239 } // namespace content
238 240
239 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 241 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698