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

Unified Diff: content/browser/service_worker/service_worker_database.h

Issue 275103004: ServiceWorker: Database functions should return status code instead of boolean (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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_database.h
diff --git a/content/browser/service_worker/service_worker_database.h b/content/browser/service_worker/service_worker_database.h
index 23d3ffd5faf134e17291c6f9d8c710cdbfdcc1eb..7fdd0a91a66223445e92698add8c7210ed38395c 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -68,10 +68,12 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
};
// For use during initialization.
- bool GetNextAvailableIds(int64* next_avail_registration_id,
- int64* next_avail_version_id,
- int64* next_avail_resource_id);
- bool GetOriginsWithRegistrations(std::set<GURL>* origins);
+ ServiceWorkerStatusCode GetNextAvailableIds(
+ int64* next_avail_registration_id,
+ int64* next_avail_version_id,
+ int64* next_avail_resource_id);
+ ServiceWorkerStatusCode GetOriginsWithRegistrations(
+ std::set<GURL>* origins);
// For use when first handling a request in an origin with registrations.
bool GetRegistrationsForOrigin(const GURL& origin,
@@ -144,8 +146,9 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
// does not exist and |create_if_needed| is false.
bool LazyOpen(bool create_if_needed);
- bool ReadNextAvailableId(const char* id_key,
- int64* next_avail_id);
+ ServiceWorkerStatusCode ReadNextAvailableId(
+ const char* id_key,
+ int64* next_avail_id);
bool ReadRegistrationData(int64 registration_id,
const GURL& origin,
RegistrationData* registration);
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698