| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 double dispatch_event_time) override; | 169 double dispatch_event_time) override; |
| 170 void didHandleSyncEvent(int request_id, | 170 void didHandleSyncEvent(int request_id, |
| 171 blink::WebServiceWorkerEventResult result, | 171 blink::WebServiceWorkerEventResult result, |
| 172 double dispatch_event_time) override; | 172 double dispatch_event_time) override; |
| 173 | 173 |
| 174 // Called on the main thread. | 174 // Called on the main thread. |
| 175 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( | 175 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( |
| 176 blink::WebDataSource* data_source) override; | 176 blink::WebDataSource* data_source) override; |
| 177 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; | 177 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; |
| 178 | 178 |
| 179 void postMessageToClient( | 179 void postMessageToClient(const blink::WebString& uuid, |
| 180 const blink::WebString& uuid, | 180 const blink::WebString& message, |
| 181 const blink::WebString& message, | 181 blink::WebMessagePortChannelArray channels) override; |
| 182 blink::WebMessagePortChannelArray* channels) override; | |
| 183 void focus(const blink::WebString& uuid, | 182 void focus(const blink::WebString& uuid, |
| 184 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; | 183 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; |
| 185 void navigate( | 184 void navigate( |
| 186 const blink::WebString& uuid, | 185 const blink::WebString& uuid, |
| 187 const blink::WebURL&, | 186 const blink::WebURL&, |
| 188 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; | 187 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; |
| 189 void skipWaiting(std::unique_ptr<blink::WebServiceWorkerSkipWaitingCallbacks> | 188 void skipWaiting(std::unique_ptr<blink::WebServiceWorkerSkipWaitingCallbacks> |
| 190 callbacks) override; | 189 callbacks) override; |
| 191 void claim(std::unique_ptr<blink::WebServiceWorkerClientsClaimCallbacks> | 190 void claim(std::unique_ptr<blink::WebServiceWorkerClientsClaimCallbacks> |
| 192 callbacks) override; | 191 callbacks) override; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Initialized on the worker thread in workerContextStarted and | 295 // Initialized on the worker thread in workerContextStarted and |
| 297 // destructed on the worker thread in willDestroyWorkerContext. | 296 // destructed on the worker thread in willDestroyWorkerContext. |
| 298 std::unique_ptr<WorkerContextData> context_; | 297 std::unique_ptr<WorkerContextData> context_; |
| 299 | 298 |
| 300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 299 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 301 }; | 300 }; |
| 302 | 301 |
| 303 } // namespace content | 302 } // namespace content |
| 304 | 303 |
| 305 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 304 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |