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

Unified Diff: content/child/service_worker/service_worker_handle_reference.h

Issue 1221643014: Service Worker: Migrate to version_uuid and surface ServiceWorker.id. (Chromium 2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/child/service_worker/service_worker_handle_reference.h
diff --git a/content/child/service_worker/service_worker_handle_reference.h b/content/child/service_worker/service_worker_handle_reference.h
index 9417b0ba9da22d501a113effec5f7c9c265a1b45..f3e1a8f1f021d0f5a385d1884d2320eacf7415f3 100644
--- a/content/child/service_worker/service_worker_handle_reference.h
+++ b/content/child/service_worker/service_worker_handle_reference.h
@@ -37,8 +37,9 @@ class ServiceWorkerHandleReference {
int handle_id() const { return info_.handle_id; }
const GURL& url() const { return info_.url; }
blink::WebServiceWorkerState state() const { return info_.state; }
+ const std::string id() const { return info_.version_uuid; }
void set_state(blink::WebServiceWorkerState state) { info_.state = state; }
- int64 version_id() const { return info_.version_id; }
+ std::string version_uuid() const { return info_.version_uuid; }
private:
ServiceWorkerHandleReference(const ServiceWorkerObjectInfo& info,

Powered by Google App Engine
This is Rietveld 408576698