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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 double dispatch_event_time) override; | 173 double dispatch_event_time) override; |
174 void didHandlePaymentRequestEvent(int request_id, | 174 void didHandlePaymentRequestEvent(int request_id, |
175 blink::WebServiceWorkerEventResult result, | 175 blink::WebServiceWorkerEventResult result, |
176 double dispatch_event_time) override; | 176 double dispatch_event_time) override; |
177 | 177 |
178 // Called on the main thread. | 178 // Called on the main thread. |
179 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( | 179 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( |
180 blink::WebDataSource* data_source) override; | 180 blink::WebDataSource* data_source) override; |
181 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; | 181 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; |
182 | 182 |
183 void postMessageToClient( | 183 void postMessageToClient(const blink::WebString& uuid, |
184 const blink::WebString& uuid, | 184 const blink::WebString& message, |
185 const blink::WebString& message, | 185 blink::WebMessagePortChannelArray channels) override; |
186 blink::WebMessagePortChannelArray* channels) override; | |
187 void focus(const blink::WebString& uuid, | 186 void focus(const blink::WebString& uuid, |
188 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; | 187 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; |
189 void navigate( | 188 void navigate( |
190 const blink::WebString& uuid, | 189 const blink::WebString& uuid, |
191 const blink::WebURL&, | 190 const blink::WebURL&, |
192 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; | 191 std::unique_ptr<blink::WebServiceWorkerClientCallbacks>) override; |
193 void skipWaiting(std::unique_ptr<blink::WebServiceWorkerSkipWaitingCallbacks> | 192 void skipWaiting(std::unique_ptr<blink::WebServiceWorkerSkipWaitingCallbacks> |
194 callbacks) override; | 193 callbacks) override; |
195 void claim(std::unique_ptr<blink::WebServiceWorkerClientsClaimCallbacks> | 194 void claim(std::unique_ptr<blink::WebServiceWorkerClientsClaimCallbacks> |
196 callbacks) override; | 195 callbacks) override; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 // Initialized on the worker thread in workerContextStarted and | 310 // Initialized on the worker thread in workerContextStarted and |
312 // destructed on the worker thread in willDestroyWorkerContext. | 311 // destructed on the worker thread in willDestroyWorkerContext. |
313 std::unique_ptr<WorkerContextData> context_; | 312 std::unique_ptr<WorkerContextData> context_; |
314 | 313 |
315 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 314 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
316 }; | 315 }; |
317 | 316 |
318 } // namespace content | 317 } // namespace content |
319 | 318 |
320 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 319 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
OLD | NEW |