Chromium Code Reviews| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 const FindRegistrationCallback& callback, | 144 const FindRegistrationCallback& callback, |
| 145 RegistrationList* registrations, | 145 RegistrationList* registrations, |
| 146 ServiceWorkerStatusCode status); | 146 ServiceWorkerStatusCode status); |
| 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 ServiceWorkerStatusCode status); | 151 ServiceWorkerStatusCode status); |
| 152 void DidReadRegistrationForId( | 152 void DidReadRegistrationForId( |
| 153 const FindRegistrationCallback& callback, | 153 const FindRegistrationCallback& callback, |
| 154 const ServiceWorkerDatabase::RegistrationData& registration, | 154 ServiceWorkerDatabase::RegistrationData* registration, |
| 155 const ResourceList& resources, | 155 ResourceList* resources, |
| 156 ServiceWorkerStatusCode status); | 156 ServiceWorkerStatusCode status); |
| 157 void DidGetAllRegistrations( | 157 void DidGetAllRegistrations( |
| 158 const GetAllRegistrationInfosCallback& callback, | 158 const GetAllRegistrationInfosCallback& callback, |
| 159 RegistrationList* registrations, | 159 RegistrationList* registrations, |
| 160 ServiceWorkerStatusCode status); | 160 ServiceWorkerStatusCode status); |
| 161 void DidStoreRegistration( | 161 void DidStoreRegistration( |
| 162 const GURL& origin, | 162 const GURL& origin, |
| 163 const StatusCallback& callback, | 163 const StatusCallback& callback, |
| 164 bool success); | 164 ServiceWorkerStatusCode status); |
| 165 void DidDeleteRegistration( | 165 void DidDeleteRegistration( |
| 166 const GURL& origin, | 166 const GURL& origin, |
| 167 const StatusCallback& callback, | 167 const StatusCallback& callback, |
| 168 bool origin_is_deletable, | 168 bool origin_is_deletable, |
| 169 ServiceWorkerStatusCode status); | 169 ServiceWorkerStatusCode status); |
| 170 void DidDatabaseOperation( | |
|
michaeln
2014/05/15 20:44:58
Maybe you have in mind to use this generically nam
nhiroki
2014/05/19 04:58:04
You are right.
| |
| 171 const StatusCallback& callback, | |
| 172 ServiceWorkerStatusCode status); | |
| 170 | 173 |
| 171 scoped_refptr<ServiceWorkerRegistration> CreateRegistration( | 174 scoped_refptr<ServiceWorkerRegistration> CreateRegistration( |
| 172 const ServiceWorkerDatabase::RegistrationData& data); | 175 const ServiceWorkerDatabase::RegistrationData& data); |
| 173 ServiceWorkerRegistration* FindInstallingRegistrationForDocument( | 176 ServiceWorkerRegistration* FindInstallingRegistrationForDocument( |
| 174 const GURL& document_url); | 177 const GURL& document_url); |
| 175 ServiceWorkerRegistration* FindInstallingRegistrationForPattern( | 178 ServiceWorkerRegistration* FindInstallingRegistrationForPattern( |
| 176 const GURL& scope); | 179 const GURL& scope); |
| 177 ServiceWorkerRegistration* FindInstallingRegistrationForId( | 180 ServiceWorkerRegistration* FindInstallingRegistrationForId( |
| 178 int64 registration_id); | 181 int64 registration_id); |
| 179 | 182 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 scoped_ptr<ServiceWorkerDiskCache> disk_cache_; | 218 scoped_ptr<ServiceWorkerDiskCache> disk_cache_; |
| 216 | 219 |
| 217 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; | 220 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; |
| 218 | 221 |
| 219 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); | 222 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); |
| 220 }; | 223 }; |
| 221 | 224 |
| 222 } // namespace content | 225 } // namespace content |
| 223 | 226 |
| 224 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ | 227 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ |
| OLD | NEW |