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

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

Issue 188283003: Add ServiceWorkerVersion::status() (which is to be persisted unlike running status) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix after rebase Created 6 years, 9 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 181f724205f9e872f0a8d9617105d65b2bb4d06e..6dda5a950905b4aa8cbef1629e345da72264acfd 100644
--- a/content/browser/service_worker/service_worker_storage.h
+++ b/content/browser/service_worker/service_worker_storage.h
@@ -56,9 +56,9 @@ class CONTENT_EXPORT ServiceWorkerStorage {
void DeleteRegistration(const GURL& pattern,
const StatusCallback& callback);
- // Returns new registration ID which is guaranteed to be unique in
- // the storage.
+ // Returns new IDs which are guaranteed to be unique in the storage.
int64 NewRegistrationId();
+ int64 NewVersionId();
private:
FRIEND_TEST_ALL_PREFIXES(ServiceWorkerStorageTest, PatternMatches);
@@ -73,6 +73,7 @@ class CONTENT_EXPORT ServiceWorkerStorage {
PatternToRegistrationMap registration_by_pattern_;
int last_registration_id_;
+ int last_version_id_;
scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
base::FilePath path_;

Powered by Google App Engine
This is Rietveld 408576698