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

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

Issue 988063004: Use UUID for ServiceWorker Client identifier (2/3, chromium) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 5 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_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
index 0943e2f38fcd42fdd993ecd9c9dc0456c9eeabe8..c10aa8f456d9feea2d297aebd4e2ebdc27f43536 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -34,10 +34,11 @@ class ServiceWorkerRequestHandler;
class ServiceWorkerVersion;
// This class is the browser-process representation of a service worker
-// provider. There is a provider per document and the lifetime of this
-// object is tied to the lifetime of its document in the renderer process.
+// provider. There is a provider per document or a worker and the lifetime
+// of this object is tied to the lifetime of its document or the worker
+// in the renderer process.
// This class holds service worker state that is scoped to an individual
-// document.
+// document or a worker.
//
// Note this class can also host a running service worker, in which
// case it will observe resource loads made directly by the service worker.
@@ -61,6 +62,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
ServiceWorkerDispatcherHost* dispatcher_host);
virtual ~ServiceWorkerProviderHost();
+ const std::string& client_uuid() const { return client_uuid_; }
int process_id() const { return render_process_id_; }
int provider_id() const { return provider_id_; }
int frame_id() const { return render_frame_id_; }
@@ -222,6 +224,7 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
bool IsReadyToSendMessages() const;
void Send(IPC::Message* message) const;
+ std::string client_uuid_;
int render_process_id_;
int render_frame_id_;
int render_thread_id_;

Powered by Google App Engine
This is Rietveld 408576698