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

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

Issue 140743012: Start EmbeddedWorker during registration - take 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_registration.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index 680fcfacbccc6def00f1ab7a2b62485d3e28e514..4d5abf472e072f17c1a8a520b9dca2c074cef04a 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -45,6 +45,8 @@ class CONTENT_EXPORT ServiceWorkerRegistration
const GURL& script_url() const { return script_url_; }
const GURL& pattern() const { return pattern_; }
+ int64 next_version_id() { return ++next_version_id_; }
+
ServiceWorkerVersion* active_version() const {
DCHECK(!is_shutdown_);
return active_version_.get();
@@ -70,12 +72,13 @@ class CONTENT_EXPORT ServiceWorkerRegistration
void ActivatePendingVersion();
private:
- virtual ~ServiceWorkerRegistration();
+ ~ServiceWorkerRegistration();
friend class base::RefCounted<ServiceWorkerRegistration>;
const GURL pattern_;
const GURL script_url_;
const int64 registration_id_;
+ int64 next_version_id_;
scoped_refptr<ServiceWorkerVersion> active_version_;
scoped_refptr<ServiceWorkerVersion> pending_version_;

Powered by Google App Engine
This is Rietveld 408576698