| OLD | NEW |
| 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 Loading... |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const blink::WebString& message, | 143 const blink::WebString& message, |
| 143 blink::WebMessagePortChannelArray* channels); | 144 blink::WebMessagePortChannelArray* channels); |
| 144 virtual void focus(const blink::WebString& uuid, | 145 virtual void focus(const blink::WebString& uuid, |
| 145 blink::WebServiceWorkerClientCallbacks*); | 146 blink::WebServiceWorkerClientCallbacks*); |
| 146 virtual void skipWaiting( | 147 virtual void skipWaiting( |
| 147 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks); | 148 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks); |
| 148 virtual void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks); | 149 virtual void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks); |
| 149 virtual void stashMessagePort(blink::WebMessagePortChannel* channel, | 150 virtual void stashMessagePort(blink::WebMessagePortChannel* channel, |
| 150 const blink::WebString& name); | 151 const blink::WebString& name); |
| 151 | 152 |
| 152 virtual void DispatchSyncEvent(const SyncCallback& callback); | 153 virtual void DispatchSyncEvent(const blink::WebSyncRegistration& registration, |
| 154 const SyncCallback& callback); |
| 153 | 155 |
| 154 private: | 156 private: |
| 155 struct WorkerContextData; | 157 struct WorkerContextData; |
| 156 | 158 |
| 157 // Get routing_id for sending message to the ServiceWorkerVersion | 159 // Get routing_id for sending message to the ServiceWorkerVersion |
| 158 // in the browser process. | 160 // in the browser process. |
| 159 int GetRoutingID() const { return embedded_worker_id_; } | 161 int GetRoutingID() const { return embedded_worker_id_; } |
| 160 | 162 |
| 161 void Send(IPC::Message* message); | 163 void Send(IPC::Message* message); |
| 162 void SendWorkerStarted(); | 164 void SendWorkerStarted(); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 scoped_ptr<WorkerContextData> context_; | 231 scoped_ptr<WorkerContextData> context_; |
| 230 | 232 |
| 231 ServiceRegistryImpl service_registry_; | 233 ServiceRegistryImpl service_registry_; |
| 232 | 234 |
| 233 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 235 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 234 }; | 236 }; |
| 235 | 237 |
| 236 } // namespace content | 238 } // namespace content |
| 237 | 239 |
| 238 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 240 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |