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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // made (which is after this object is made). This function must be called | 104 // made (which is after this object is made). This function must be called |
105 // after this object is created but before any ServiceWorkerCache operations. | 105 // after this object is created but before any ServiceWorkerCache operations. |
106 // It must be called on the IO thread. If either parameter is NULL the | 106 // It must be called on the IO thread. If either parameter is NULL the |
107 // function immediately returns without forwarding to the | 107 // function immediately returns without forwarding to the |
108 // ServiceWorkerCacheStorageManager. | 108 // ServiceWorkerCacheStorageManager. |
109 void SetBlobParametersForCache( | 109 void SetBlobParametersForCache( |
110 net::URLRequestContextGetter* request_context, | 110 net::URLRequestContextGetter* request_context, |
111 ChromeBlobStorageContext* blob_storage_context); | 111 ChromeBlobStorageContext* blob_storage_context); |
112 | 112 |
113 private: | 113 private: |
| 114 friend class BackgroundSyncManagerTest; |
114 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; | 115 friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>; |
115 friend class EmbeddedWorkerTestHelper; | 116 friend class EmbeddedWorkerTestHelper; |
116 friend class ServiceWorkerProcessManager; | 117 friend class ServiceWorkerProcessManager; |
117 friend class MockServiceWorkerContextWrapper; | 118 friend class MockServiceWorkerContextWrapper; |
118 | 119 |
119 ~ServiceWorkerContextWrapper() override; | 120 ~ServiceWorkerContextWrapper() override; |
120 | 121 |
121 void InitInternal( | 122 void InitInternal( |
122 const base::FilePath& user_data_directory, | 123 const base::FilePath& user_data_directory, |
123 const scoped_refptr<base::SequencedTaskRunner>& stores_task_runner, | 124 const scoped_refptr<base::SequencedTaskRunner>& stores_task_runner, |
(...skipping 24 matching lines...) Expand all Loading... |
148 // Initialized in Init(); true if the user data directory is empty. | 149 // Initialized in Init(); true if the user data directory is empty. |
149 bool is_incognito_; | 150 bool is_incognito_; |
150 | 151 |
151 // Raw pointer to the StoragePartitionImpl owning |this|. | 152 // Raw pointer to the StoragePartitionImpl owning |this|. |
152 StoragePartitionImpl* storage_partition_; | 153 StoragePartitionImpl* storage_partition_; |
153 }; | 154 }; |
154 | 155 |
155 } // namespace content | 156 } // namespace content |
156 | 157 |
157 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ | 158 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_WRAPPER_H_ |
OLD | NEW |