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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/service_worker_storage.h
diff --git a/content/browser/service_worker/service_worker_storage.h b/content/browser/service_worker/service_worker_storage.h
index 974b6f743b7ef2dd0711d78a9d4f772fa4c4d568..033f3b6b5bebee70bb21c0fec9daf3a50dcac521 100644
--- a/content/browser/service_worker/service_worker_storage.h
+++ b/content/browser/service_worker/service_worker_storage.h
@@ -151,8 +151,8 @@ class CONTENT_EXPORT ServiceWorkerStorage {
ServiceWorkerStatusCode status);
void DidReadRegistrationForId(
const FindRegistrationCallback& callback,
- const ServiceWorkerDatabase::RegistrationData& registration,
- const ResourceList& resources,
+ ServiceWorkerDatabase::RegistrationData* registration,
+ ResourceList* resources,
ServiceWorkerStatusCode status);
void DidGetAllRegistrations(
const GetAllRegistrationInfosCallback& callback,
@@ -161,12 +161,15 @@ class CONTENT_EXPORT ServiceWorkerStorage {
void DidStoreRegistration(
const GURL& origin,
const StatusCallback& callback,
- bool success);
+ ServiceWorkerStatusCode status);
void DidDeleteRegistration(
const GURL& origin,
const StatusCallback& callback,
bool origin_is_deletable,
ServiceWorkerStatusCode status);
+ 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.
+ const StatusCallback& callback,
+ ServiceWorkerStatusCode status);
scoped_refptr<ServiceWorkerRegistration> CreateRegistration(
const ServiceWorkerDatabase::RegistrationData& data);

Powered by Google App Engine
This is Rietveld 408576698