| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 blink::WebMessagePortChannelArray* channels) override; | 164 blink::WebMessagePortChannelArray* channels) override; |
| 165 void focus(const blink::WebString& uuid, | 165 void focus(const blink::WebString& uuid, |
| 166 blink::WebServiceWorkerClientCallbacks*) override; | 166 blink::WebServiceWorkerClientCallbacks*) override; |
| 167 void navigate(const blink::WebString& uuid, | 167 void navigate(const blink::WebString& uuid, |
| 168 const blink::WebURL&, | 168 const blink::WebURL&, |
| 169 blink::WebServiceWorkerClientCallbacks*) override; | 169 blink::WebServiceWorkerClientCallbacks*) override; |
| 170 void skipWaiting( | 170 void skipWaiting( |
| 171 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; | 171 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; |
| 172 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; | 172 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; |
| 173 void registerForeignFetchScopes( | 173 void registerForeignFetchScopes( |
| 174 const blink::WebVector<blink::WebURL>& sub_scopes) override; | 174 const blink::WebVector<blink::WebURL>& sub_scopes, |
| 175 const blink::WebVector<blink::WebSecurityOrigin>& origins) override; |
| 175 | 176 |
| 176 virtual void DispatchSyncEvent( | 177 virtual void DispatchSyncEvent( |
| 177 const blink::WebSyncRegistration& registration, | 178 const blink::WebSyncRegistration& registration, |
| 178 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance, | 179 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance, |
| 179 const SyncCallback& callback); | 180 const SyncCallback& callback); |
| 180 | 181 |
| 181 private: | 182 private: |
| 182 struct WorkerContextData; | 183 struct WorkerContextData; |
| 183 | 184 |
| 184 // Get routing_id for sending message to the ServiceWorkerVersion | 185 // Get routing_id for sending message to the ServiceWorkerVersion |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // Initialized on the worker thread in workerContextStarted and | 263 // Initialized on the worker thread in workerContextStarted and |
| 263 // destructed on the worker thread in willDestroyWorkerContext. | 264 // destructed on the worker thread in willDestroyWorkerContext. |
| 264 scoped_ptr<WorkerContextData> context_; | 265 scoped_ptr<WorkerContextData> context_; |
| 265 | 266 |
| 266 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 267 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 267 }; | 268 }; |
| 268 | 269 |
| 269 } // namespace content | 270 } // namespace content |
| 270 | 271 |
| 271 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 272 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |