Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: content/browser/service_worker/service_worker_storage.h

Issue 284123003: ServiceWorker: DB functions should return status code instead of boolean (3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
144 const FindRegistrationCallback& callback, 144 const FindRegistrationCallback& callback,
145 RegistrationList* registrations, 145 RegistrationList* registrations,
146 ServiceWorkerDatabase::Status status); 146 ServiceWorkerDatabase::Status 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 ServiceWorkerDatabase::Status status); 151 ServiceWorkerDatabase::Status 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 ServiceWorkerDatabase::Status status); 156 ServiceWorkerDatabase::Status status);
157 void DidGetAllRegistrations( 157 void DidGetAllRegistrations(
158 const GetAllRegistrationInfosCallback& callback, 158 const GetAllRegistrationInfosCallback& callback,
159 RegistrationList* registrations, 159 RegistrationList* registrations,
160 ServiceWorkerDatabase::Status status); 160 ServiceWorkerDatabase::Status 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 ServiceWorkerDatabase::Status status);
165 void DidUpdateToActiveState(
166 const StatusCallback& callback,
167 ServiceWorkerDatabase::Status status);
165 void DidDeleteRegistration( 168 void DidDeleteRegistration(
166 const GURL& origin, 169 const GURL& origin,
167 const StatusCallback& callback, 170 const StatusCallback& callback,
168 bool origin_is_deletable, 171 bool origin_is_deletable,
169 ServiceWorkerDatabase::Status status); 172 ServiceWorkerDatabase::Status 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);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698