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

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: Remove const ref from mojo StructPtr (with rebase) 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 const blink::WebString& message, 144 const blink::WebString& message,
144 blink::WebMessagePortChannelArray* channels); 145 blink::WebMessagePortChannelArray* channels);
145 virtual void focus(const blink::WebString& uuid, 146 virtual void focus(const blink::WebString& uuid,
146 blink::WebServiceWorkerClientCallbacks*); 147 blink::WebServiceWorkerClientCallbacks*);
147 virtual void skipWaiting( 148 virtual void skipWaiting(
148 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks); 149 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks);
149 virtual void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks); 150 virtual void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks);
150 virtual void stashMessagePort(blink::WebMessagePortChannel* channel, 151 virtual void stashMessagePort(blink::WebMessagePortChannel* channel,
151 const blink::WebString& name); 152 const blink::WebString& name);
152 153
153 virtual void DispatchSyncEvent(const SyncCallback& callback); 154 virtual void DispatchSyncEvent(const blink::WebSyncRegistration& registration,
155 const SyncCallback& callback);
154 156
155 private: 157 private:
156 struct WorkerContextData; 158 struct WorkerContextData;
157 159
158 // Get routing_id for sending message to the ServiceWorkerVersion 160 // Get routing_id for sending message to the ServiceWorkerVersion
159 // in the browser process. 161 // in the browser process.
160 int GetRoutingID() const { return embedded_worker_id_; } 162 int GetRoutingID() const { return embedded_worker_id_; }
161 163
162 void Send(IPC::Message* message); 164 void Send(IPC::Message* message);
163 void SendWorkerStarted(); 165 void SendWorkerStarted();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Initialized on the worker thread in workerContextStarted and 228 // Initialized on the worker thread in workerContextStarted and
227 // destructed on the worker thread in willDestroyWorkerContext. 229 // destructed on the worker thread in willDestroyWorkerContext.
228 scoped_ptr<WorkerContextData> context_; 230 scoped_ptr<WorkerContextData> context_;
229 231
230 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 232 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
231 }; 233 };
232 234
233 } // namespace content 235 } // namespace content
234 236
235 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 237 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698