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

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: 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 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 a0183dbf131f1870f4ebd6b775bc0ccb3224907c..d815bf8cdf6b298498b343c6eb980f18fe3d8f8b 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 {
ServiceWorkerDatabase::Status status);
void DidReadRegistrationForId(
const FindRegistrationCallback& callback,
- const ServiceWorkerDatabase::RegistrationData& registration,
- const ResourceList& resources,
+ ServiceWorkerDatabase::RegistrationData* registration,
+ ResourceList* resources,
ServiceWorkerDatabase::Status status);
void DidGetAllRegistrations(
const GetAllRegistrationInfosCallback& callback,
@@ -161,7 +161,10 @@ class CONTENT_EXPORT ServiceWorkerStorage {
void DidStoreRegistration(
const GURL& origin,
const StatusCallback& callback,
- bool success);
+ ServiceWorkerDatabase::Status status);
+ void DidUpdateToActiveState(
+ const StatusCallback& callback,
+ ServiceWorkerDatabase::Status status);
void DidDeleteRegistration(
const GURL& origin,
const StatusCallback& callback,

Powered by Google App Engine
This is Rietveld 408576698