| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 void DidFindRegistrationForUpdate( | 166 void DidFindRegistrationForUpdate( |
| 167 ServiceWorkerStatusCode status, | 167 ServiceWorkerStatusCode status, |
| 168 const scoped_refptr<content::ServiceWorkerRegistration>& registration); | 168 const scoped_refptr<content::ServiceWorkerRegistration>& registration); |
| 169 | 169 |
| 170 // The core context is only for use on the IO thread. | 170 // The core context is only for use on the IO thread. |
| 171 // Can be null before/during init, during/after shutdown, and after | 171 // Can be null before/during init, during/after shutdown, and after |
| 172 // DeleteAndStartOver fails. | 172 // DeleteAndStartOver fails. |
| 173 ServiceWorkerContextCore* context(); | 173 ServiceWorkerContextCore* context(); |
| 174 | 174 |
| 175 const scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > | 175 const scoped_refptr<base::ObserverListThreadSafe< |
| 176 observer_list_; | 176 ServiceWorkerContextObserver>> observer_list_; |
| 177 const scoped_ptr<ServiceWorkerProcessManager> process_manager_; | 177 const scoped_ptr<ServiceWorkerProcessManager> process_manager_; |
| 178 // Cleared in Shutdown(): | 178 // Cleared in Shutdown(): |
| 179 scoped_ptr<ServiceWorkerContextCore> context_core_; | 179 scoped_ptr<ServiceWorkerContextCore> context_core_; |
| 180 | 180 |
| 181 // Initialized in Init(); true if the user data directory is empty. | 181 // Initialized in Init(); true if the user data directory is empty. |
| 182 bool is_incognito_; | 182 bool is_incognito_; |
| 183 | 183 |
| 184 // Raw pointer to the StoragePartitionImpl owning |this|. | 184 // Raw pointer to the StoragePartitionImpl owning |this|. |
| 185 StoragePartitionImpl* storage_partition_; | 185 StoragePartitionImpl* storage_partition_; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 } // namespace content | 188 } // namespace content |
| 189 | 189 |
| 190 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 190 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |