| 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 26 matching lines...) Expand all Loading... |
| 37 class TaskRunner; | 37 class TaskRunner; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 class WebDataConsumerHandle; | 41 class WebDataConsumerHandle; |
| 42 class WebDataSource; | 42 class WebDataSource; |
| 43 struct WebServiceWorkerClientQueryOptions; | 43 struct WebServiceWorkerClientQueryOptions; |
| 44 class WebServiceWorkerContextProxy; | 44 class WebServiceWorkerContextProxy; |
| 45 class WebServiceWorkerProvider; | 45 class WebServiceWorkerProvider; |
| 46 class WebServiceWorkerResponse; | 46 class WebServiceWorkerResponse; |
| 47 class WebURLResponse; |
| 47 } | 48 } |
| 48 | 49 |
| 49 namespace IPC { | 50 namespace IPC { |
| 50 class Message; | 51 class Message; |
| 51 } | 52 } |
| 52 | 53 |
| 53 namespace content { | 54 namespace content { |
| 54 | 55 |
| 55 struct PlatformNotificationData; | 56 struct PlatformNotificationData; |
| 56 struct PushEventPayload; | 57 struct PushEventPayload; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 void OnNavigateClientError(int request_id, const GURL& url); | 253 void OnNavigateClientError(int request_id, const GURL& url); |
| 253 void OnDidSkipWaiting(int request_id); | 254 void OnDidSkipWaiting(int request_id); |
| 254 void OnDidClaimClients(int request_id); | 255 void OnDidClaimClients(int request_id); |
| 255 void OnClaimClientsError(int request_id, | 256 void OnClaimClientsError(int request_id, |
| 256 blink::WebServiceWorkerError::ErrorType error_type, | 257 blink::WebServiceWorkerError::ErrorType error_type, |
| 257 const base::string16& message); | 258 const base::string16& message); |
| 258 void OnPing(); | 259 void OnPing(); |
| 259 | 260 |
| 260 void OnNavigationPreloadResponse( | 261 void OnNavigationPreloadResponse( |
| 261 int fetch_event_id, | 262 int fetch_event_id, |
| 262 std::unique_ptr<blink::WebServiceWorkerResponse> response, | 263 std::unique_ptr<blink::WebURLResponse> response, |
| 263 std::unique_ptr<blink::WebDataConsumerHandle> data_consumer_handle); | 264 std::unique_ptr<blink::WebDataConsumerHandle> data_consumer_handle); |
| 264 void OnNavigationPreloadError( | 265 void OnNavigationPreloadError( |
| 265 int fetch_event_id, | 266 int fetch_event_id, |
| 266 std::unique_ptr<blink::WebServiceWorkerError> error); | 267 std::unique_ptr<blink::WebServiceWorkerError> error); |
| 267 | 268 |
| 268 base::WeakPtr<ServiceWorkerContextClient> GetWeakPtr(); | 269 base::WeakPtr<ServiceWorkerContextClient> GetWeakPtr(); |
| 269 | 270 |
| 270 const int embedded_worker_id_; | 271 const int embedded_worker_id_; |
| 271 const int64_t service_worker_version_id_; | 272 const int64_t service_worker_version_id_; |
| 272 const GURL service_worker_scope_; | 273 const GURL service_worker_scope_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 290 // Initialized on the worker thread in workerContextStarted and | 291 // Initialized on the worker thread in workerContextStarted and |
| 291 // destructed on the worker thread in willDestroyWorkerContext. | 292 // destructed on the worker thread in willDestroyWorkerContext. |
| 292 std::unique_ptr<WorkerContextData> context_; | 293 std::unique_ptr<WorkerContextData> context_; |
| 293 | 294 |
| 294 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); | 295 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); |
| 295 }; | 296 }; |
| 296 | 297 |
| 297 } // namespace content | 298 } // namespace content |
| 298 | 299 |
| 299 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ | 300 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ |
| OLD | NEW |