| 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_STORAGE_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 base::FilePath GetDiskCachePath(); | 231 base::FilePath GetDiskCachePath(); |
| 232 | 232 |
| 233 bool LazyInitialize( | 233 bool LazyInitialize( |
| 234 const base::Closure& callback); | 234 const base::Closure& callback); |
| 235 void DidReadInitialData( | 235 void DidReadInitialData( |
| 236 InitialData* data, | 236 InitialData* data, |
| 237 ServiceWorkerDatabase::Status status); | 237 ServiceWorkerDatabase::Status status); |
| 238 void DidFindRegistrationForDocument( | 238 void DidFindRegistrationForDocument( |
| 239 const GURL& document_url, | 239 const GURL& document_url, |
| 240 const FindRegistrationCallback& callback, | 240 const FindRegistrationCallback& callback, |
| 241 int64 callback_id, |
| 241 const ServiceWorkerDatabase::RegistrationData& data, | 242 const ServiceWorkerDatabase::RegistrationData& data, |
| 242 const ResourceList& resources, | 243 const ResourceList& resources, |
| 243 ServiceWorkerDatabase::Status status); | 244 ServiceWorkerDatabase::Status status); |
| 244 void DidFindRegistrationForPattern( | 245 void DidFindRegistrationForPattern( |
| 245 const GURL& scope, | 246 const GURL& scope, |
| 246 const FindRegistrationCallback& callback, | 247 const FindRegistrationCallback& callback, |
| 247 const ServiceWorkerDatabase::RegistrationData& data, | 248 const ServiceWorkerDatabase::RegistrationData& data, |
| 248 const ResourceList& resources, | 249 const ResourceList& resources, |
| 249 ServiceWorkerDatabase::Status status); | 250 ServiceWorkerDatabase::Status status); |
| 250 void DidFindRegistrationForId( | 251 void DidFindRegistrationForId( |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 std::set<int64> pending_deletions_; | 387 std::set<int64> pending_deletions_; |
| 387 | 388 |
| 388 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 389 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
| 389 | 390 |
| 390 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 391 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
| 391 }; | 392 }; |
| 392 | 393 |
| 393 } // namespace content | 394 } // namespace content |
| 394 | 395 |
| 395 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 396 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| OLD | NEW |