| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 const blink::WebURL&, | 169 const blink::WebURL&, |
| 170 blink::WebServiceWorkerClientCallbacks*) override; | 170 blink::WebServiceWorkerClientCallbacks*) override; |
| 171 void skipWaiting( | 171 void skipWaiting( |
| 172 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; | 172 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; |
| 173 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; | 173 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; |
| 174 void registerForeignFetchScopes( | 174 void registerForeignFetchScopes( |
| 175 const blink::WebVector<blink::WebURL>& sub_scopes, | 175 const blink::WebVector<blink::WebURL>& sub_scopes, |
| 176 const blink::WebVector<blink::WebSecurityOrigin>& origins) override; | 176 const blink::WebVector<blink::WebSecurityOrigin>& origins) override; |
| 177 | 177 |
| 178 virtual void DispatchSyncEvent( | 178 virtual void DispatchSyncEvent( |
| 179 const blink::WebSyncRegistration& registration, | 179 const std::string& tag, |
| 180 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance, | 180 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance, |
| 181 const SyncCallback& callback); | 181 const SyncCallback& callback); |
| 182 | 182 |
| 183 private: | 183 private: |
| 184 struct WorkerContextData; | 184 struct WorkerContextData; |
| 185 | 185 |
| 186 // Get routing_id for sending message to the ServiceWorkerVersion | 186 // Get routing_id for sending message to the ServiceWorkerVersion |
| 187 // in the browser process. | 187 // in the browser process. |
| 188 int GetRoutingID() const { return embedded_worker_id_; } | 188 int GetRoutingID() const { return embedded_worker_id_; } |
| 189 | 189 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Initialized on the worker thread in workerContextStarted and | 265 // Initialized on the worker thread in workerContextStarted and |
| 266 // destructed on the worker thread in willDestroyWorkerContext. | 266 // destructed on the worker thread in willDestroyWorkerContext. |
| 267 scoped_ptr<WorkerContextData> context_; | 267 scoped_ptr<WorkerContextData> context_; |
| 268 | 268 |
| 269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 } // namespace content | 272 } // namespace content |
| 273 | 273 |
| 274 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 274 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |