| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 private: | 131 private: |
| 132 friend class ServiceWorkerStorageTest; | 132 friend class ServiceWorkerStorageTest; |
| 133 | 133 |
| 134 typedef std::vector<ServiceWorkerDatabase::RegistrationData> RegistrationList; | 134 typedef std::vector<ServiceWorkerDatabase::RegistrationData> RegistrationList; |
| 135 typedef std::vector<ServiceWorkerDatabase::ResourceRecord> ResourceList; | 135 typedef std::vector<ServiceWorkerDatabase::ResourceRecord> ResourceList; |
| 136 | 136 |
| 137 bool LazyInitialize( | 137 bool LazyInitialize( |
| 138 const base::Closure& callback); | 138 const base::Closure& callback); |
| 139 void DidReadInitialData( | 139 void DidReadInitialData( |
| 140 InitialData* data, | 140 InitialData* data, |
| 141 bool success); | 141 ServiceWorkerStatusCode status); |
| 142 void DidGetRegistrationsForPattern( | 142 void DidGetRegistrationsForPattern( |
| 143 const GURL& scope, | 143 const GURL& scope, |
| 144 const FindRegistrationCallback& callback, | 144 const FindRegistrationCallback& callback, |
| 145 RegistrationList* registrations, | 145 RegistrationList* registrations, |
| 146 bool succcess); | 146 bool succcess); |
| 147 void DidGetRegistrationsForDocument( | 147 void DidGetRegistrationsForDocument( |
| 148 const GURL& scope, | 148 const GURL& scope, |
| 149 const FindRegistrationCallback& callback, | 149 const FindRegistrationCallback& callback, |
| 150 RegistrationList* registrations, | 150 RegistrationList* registrations, |
| 151 bool succcess); | 151 bool succcess); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 scoped_ptr<ServiceWorkerDiskCache> disk_cache_; | 215 scoped_ptr<ServiceWorkerDiskCache> disk_cache_; |
| 216 | 216 |
| 217 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 217 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
| 218 | 218 |
| 219 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 219 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 } // namespace content | 222 } // namespace content |
| 223 | 223 |
| 224 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 224 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| OLD | NEW |