| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 typedef base::Callback<void(ServiceWorkerStatusCode status, | 51 typedef base::Callback<void(ServiceWorkerStatusCode status, |
| 52 const scoped_refptr<ServiceWorkerRegistration>& | 52 const scoped_refptr<ServiceWorkerRegistration>& |
| 53 registration)> FindRegistrationCallback; | 53 registration)> FindRegistrationCallback; |
| 54 typedef base::Callback< | 54 typedef base::Callback< |
| 55 void(const std::vector<ServiceWorkerRegistrationInfo>& registrations)> | 55 void(const std::vector<ServiceWorkerRegistrationInfo>& registrations)> |
| 56 GetAllRegistrationInfosCallback; | 56 GetAllRegistrationInfosCallback; |
| 57 typedef base::Callback< | 57 typedef base::Callback< |
| 58 void(ServiceWorkerStatusCode status, bool are_equal)> | 58 void(ServiceWorkerStatusCode status, bool are_equal)> |
| 59 CompareCallback; | 59 CompareCallback; |
| 60 | 60 |
| 61 virtual ~ServiceWorkerStorage(); | 61 ~ServiceWorkerStorage() override; |
| 62 | 62 |
| 63 static scoped_ptr<ServiceWorkerStorage> Create( | 63 static scoped_ptr<ServiceWorkerStorage> Create( |
| 64 const base::FilePath& path, | 64 const base::FilePath& path, |
| 65 base::WeakPtr<ServiceWorkerContextCore> context, | 65 base::WeakPtr<ServiceWorkerContextCore> context, |
| 66 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, | 66 scoped_ptr<ServiceWorkerDatabaseTaskManager> database_task_manager, |
| 67 const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread, | 67 const scoped_refptr<base::SingleThreadTaskRunner>& disk_cache_thread, |
| 68 storage::QuotaManagerProxy* quota_manager_proxy, | 68 storage::QuotaManagerProxy* quota_manager_proxy, |
| 69 storage::SpecialStoragePolicy* special_storage_policy); | 69 storage::SpecialStoragePolicy* special_storage_policy); |
| 70 | 70 |
| 71 // Used for DeleteAndStartOver. Creates new storage based on |old_storage|. | 71 // Used for DeleteAndStartOver. Creates new storage based on |old_storage|. |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 std::set<int64> pending_deletions_; | 399 std::set<int64> pending_deletions_; |
| 400 | 400 |
| 401 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 401 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
| 402 | 402 |
| 403 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 403 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
| 404 }; | 404 }; |
| 405 | 405 |
| 406 } // namespace content | 406 } // namespace content |
| 407 | 407 |
| 408 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 408 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| OLD | NEW |