| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void didHandleNotificationCloseEvent( | 163 void didHandleNotificationCloseEvent( |
| 164 int request_id, | 164 int request_id, |
| 165 blink::WebServiceWorkerEventResult result, | 165 blink::WebServiceWorkerEventResult result, |
| 166 double dispatch_event_time) override; | 166 double dispatch_event_time) override; |
| 167 void didHandlePushEvent(int request_id, | 167 void didHandlePushEvent(int request_id, |
| 168 blink::WebServiceWorkerEventResult result, | 168 blink::WebServiceWorkerEventResult result, |
| 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 void didHandlePaymentRequestEvent(int request_id, |
| 174 blink::WebServiceWorkerEventResult result, |
| 175 double dispatch_event_time) override; |
| 173 | 176 |
| 174 // Called on the main thread. | 177 // Called on the main thread. |
| 175 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( | 178 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( |
| 176 blink::WebDataSource* data_source) override; | 179 blink::WebDataSource* data_source) override; |
| 177 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; | 180 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; |
| 178 | 181 |
| 179 void postMessageToClient( | 182 void postMessageToClient( |
| 180 const blink::WebString& uuid, | 183 const blink::WebString& uuid, |
| 181 const blink::WebString& message, | 184 const blink::WebString& message, |
| 182 blink::WebMessagePortChannelArray* channels) override; | 185 blink::WebMessagePortChannelArray* channels) override; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Initialized on the worker thread in workerContextStarted and | 299 // Initialized on the worker thread in workerContextStarted and |
| 297 // destructed on the worker thread in willDestroyWorkerContext. | 300 // destructed on the worker thread in willDestroyWorkerContext. |
| 298 std::unique_ptr<WorkerContextData> context_; | 301 std::unique_ptr<WorkerContextData> context_; |
| 299 | 302 |
| 300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 301 }; | 304 }; |
| 302 | 305 |
| 303 } // namespace content | 306 } // namespace content |
| 304 | 307 |
| 305 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 308 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |