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