| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 // Called on the main thread. | 153 // Called on the main thread. |
| 154 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( | 154 blink::WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( |
| 155 blink::WebDataSource* data_source) override; | 155 blink::WebDataSource* data_source) override; |
| 156 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; | 156 blink::WebServiceWorkerProvider* createServiceWorkerProvider() override; |
| 157 | 157 |
| 158 void postMessageToClient( | 158 void postMessageToClient( |
| 159 const blink::WebString& uuid, | 159 const blink::WebString& uuid, |
| 160 const blink::WebString& message, | 160 const blink::WebString& message, |
| 161 blink::WebMessagePortChannelArray* channels) override; | 161 blink::WebMessagePortChannelArray* channels) override; |
| 162 void postMessageToCrossOriginClient( |
| 163 const blink::WebCrossOriginServiceWorkerClient&, |
| 164 const blink::WebString&, |
| 165 blink::WebMessagePortChannelArray*) override; |
| 162 void focus(const blink::WebString& uuid, | 166 void focus(const blink::WebString& uuid, |
| 163 blink::WebServiceWorkerClientCallbacks*) override; | 167 blink::WebServiceWorkerClientCallbacks*) override; |
| 164 void navigate(const blink::WebString& uuid, | 168 void navigate(const blink::WebString& uuid, |
| 165 const blink::WebURL&, | 169 const blink::WebURL&, |
| 166 blink::WebServiceWorkerClientCallbacks*) override; | 170 blink::WebServiceWorkerClientCallbacks*) override; |
| 167 void skipWaiting( | 171 void skipWaiting( |
| 168 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; | 172 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; |
| 169 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; | 173 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; |
| 170 void registerForeignFetchScopes( | 174 void registerForeignFetchScopes( |
| 171 const blink::WebVector<blink::WebURL>& sub_scopes, | 175 const blink::WebVector<blink::WebURL>& sub_scopes, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Initialized on the worker thread in workerContextStarted and | 258 // Initialized on the worker thread in workerContextStarted and |
| 255 // destructed on the worker thread in willDestroyWorkerContext. | 259 // destructed on the worker thread in willDestroyWorkerContext. |
| 256 scoped_ptr<WorkerContextData> context_; | 260 scoped_ptr<WorkerContextData> context_; |
| 257 | 261 |
| 258 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 262 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 259 }; | 263 }; |
| 260 | 264 |
| 261 } // namespace content | 265 } // namespace content |
| 262 | 266 |
| 263 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 267 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |