| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 bool is_incognito() const { return is_incognito_; } | 162 bool is_incognito() const { return is_incognito_; } |
| 163 | 163 |
| 164 private: | 164 private: |
| 165 friend class BackgroundSyncManagerTest; | 165 friend class BackgroundSyncManagerTest; |
| 166 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; | 166 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; |
| 167 friend class EmbeddedWorkerTestHelper; | 167 friend class EmbeddedWorkerTestHelper; |
| 168 friend class EmbeddedWorkerBrowserTest; | 168 friend class EmbeddedWorkerBrowserTest; |
| 169 friend class ServiceWorkerDispatcherHost; | 169 friend class ServiceWorkerDispatcherHost; |
| 170 friend class ServiceWorkerInternalsUI; | 170 friend class ServiceWorkerInternalsUI; |
| 171 friend class ServiceWorkerNavigationHandleCore; |
| 171 friend class ServiceWorkerProcessManager; | 172 friend class ServiceWorkerProcessManager; |
| 172 friend class ServiceWorkerRequestHandler; | 173 friend class ServiceWorkerRequestHandler; |
| 173 friend class ServiceWorkerVersionBrowserTest; | 174 friend class ServiceWorkerVersionBrowserTest; |
| 174 friend class MockServiceWorkerContextWrapper; | 175 friend class MockServiceWorkerContextWrapper; |
| 175 | 176 |
| 176 ~ServiceWorkerContextWrapper() override; | 177 ~ServiceWorkerContextWrapper() override; |
| 177 | 178 |
| 178 void InitInternal( | 179 void InitInternal( |
| 179 const base::FilePath& user_data_directory, | 180 const base::FilePath& user_data_directory, |
| 180 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, | 181 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 227 |
| 227 // The ResourceContext associated with this context. | 228 // The ResourceContext associated with this context. |
| 228 ResourceContext* resource_context_; | 229 ResourceContext* resource_context_; |
| 229 | 230 |
| 230 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); | 231 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextWrapper); |
| 231 }; | 232 }; |
| 232 | 233 |
| 233 } // namespace content | 234 } // namespace content |
| 234 | 235 |
| 235 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 236 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
| OLD | NEW |