| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 ServiceWorkerStatusCode status, | 279 ServiceWorkerStatusCode status, |
| 280 scoped_refptr<content::ServiceWorkerRegistration> registration); | 280 scoped_refptr<content::ServiceWorkerRegistration> registration); |
| 281 | 281 |
| 282 // The core context is only for use on the IO thread. | 282 // The core context is only for use on the IO thread. |
| 283 // Can be null before/during init, during/after shutdown, and after | 283 // Can be null before/during init, during/after shutdown, and after |
| 284 // DeleteAndStartOver fails. | 284 // DeleteAndStartOver fails. |
| 285 ServiceWorkerContextCore* context(); | 285 ServiceWorkerContextCore* context(); |
| 286 | 286 |
| 287 const scoped_refptr< | 287 const scoped_refptr< |
| 288 base::ObserverListThreadSafe<ServiceWorkerContextCoreObserver>> | 288 base::ObserverListThreadSafe<ServiceWorkerContextCoreObserver>> |
| 289 observer_list_; | 289 core_observer_list_; |
| 290 const std::unique_ptr<ServiceWorkerProcessManager> process_manager_; | 290 const std::unique_ptr<ServiceWorkerProcessManager> process_manager_; |
| 291 // Cleared in ShutdownOnIO(): | 291 // Cleared in ShutdownOnIO(): |
| 292 std::unique_ptr<ServiceWorkerContextCore> context_core_; | 292 std::unique_ptr<ServiceWorkerContextCore> context_core_; |
| 293 | 293 |
| 294 // Initialized in Init(); true if the user data directory is empty. | 294 // Initialized in Init(); true if the user data directory is empty. |
| 295 bool is_incognito_; | 295 bool is_incognito_; |
| 296 | 296 |
| 297 // Raw pointer to the StoragePartitionImpl owning |this|. | 297 // Raw pointer to the StoragePartitionImpl owning |this|. |
| 298 StoragePartitionImpl* storage_partition_; | 298 StoragePartitionImpl* storage_partition_; |
| 299 | 299 |
| 300 // The ResourceContext associated with this context. | 300 // The ResourceContext associated with this context. |
| 301 ResourceContext* resource_context_; | 301 ResourceContext* resource_context_; |
| 302 | 302 |
| 303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 303 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
| 304 }; | 304 }; |
| 305 | 305 |
| 306 } // namespace content | 306 } // namespace content |
| 307 | 307 |
| 308 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 308 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |