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_CORE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 int GetNewRegistrationHandleId(); | 173 int GetNewRegistrationHandleId(); |
174 | 174 |
175 void ScheduleDeleteAndStartOver() const; | 175 void ScheduleDeleteAndStartOver() const; |
176 | 176 |
177 // Deletes all files on disk and restarts the system. This leaves the system | 177 // Deletes all files on disk and restarts the system. This leaves the system |
178 // in a disabled state until it's done. | 178 // in a disabled state until it's done. |
179 void DeleteAndStartOver(const StatusCallback& callback); | 179 void DeleteAndStartOver(const StatusCallback& callback); |
180 | 180 |
181 void SetBlobParametersForCache( | 181 void SetBlobParametersForCache( |
182 net::URLRequestContext* request_context, | 182 net::URLRequestContext* request_context, |
183 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context); | 183 base::WeakPtr<storage::BlobStorageContext> blob_storage_context); |
184 | 184 |
185 base::WeakPtr<ServiceWorkerContextCore> AsWeakPtr() { | 185 base::WeakPtr<ServiceWorkerContextCore> AsWeakPtr() { |
186 return weak_factory_.GetWeakPtr(); | 186 return weak_factory_.GetWeakPtr(); |
187 } | 187 } |
188 | 188 |
189 private: | 189 private: |
190 typedef std::map<int64, ServiceWorkerRegistration*> RegistrationsMap; | 190 typedef std::map<int64, ServiceWorkerRegistration*> RegistrationsMap; |
191 typedef std::map<int64, ServiceWorkerVersion*> VersionMap; | 191 typedef std::map<int64, ServiceWorkerVersion*> VersionMap; |
192 | 192 |
193 ProviderMap* GetProviderMapForProcess(int process_id) { | 193 ProviderMap* GetProviderMapForProcess(int process_id) { |
(...skipping 26 matching lines...) Expand all Loading... |
220 int next_registration_handle_id_; | 220 int next_registration_handle_id_; |
221 scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > | 221 scoped_refptr<ObserverListThreadSafe<ServiceWorkerContextObserver> > |
222 observer_list_; | 222 observer_list_; |
223 | 223 |
224 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); | 224 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextCore); |
225 }; | 225 }; |
226 | 226 |
227 } // namespace content | 227 } // namespace content |
228 | 228 |
229 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ | 229 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CORE_H_ |
OLD | NEW |