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

Unified Diff: content/renderer/service_worker/embedded_worker_context_client.cc

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/renderer/service_worker/embedded_worker_context_client.cc
diff --git a/content/renderer/service_worker/embedded_worker_context_client.cc b/content/renderer/service_worker/embedded_worker_context_client.cc
index e99e9edf3e8f4598831c364df374c45980145911..e2c50d84f61d11842599e6e8e9fc97b23440ca6f 100644
--- a/content/renderer/service_worker/embedded_worker_context_client.cc
+++ b/content/renderer/service_worker/embedded_worker_context_client.cc
@@ -390,12 +390,12 @@ EmbeddedWorkerContextClient::createServiceWorkerProvider() {
}
void EmbeddedWorkerContextClient::postMessageToClient(
- int client_id,
+ const blink::WebString& uuid,
const blink::WebString& message,
blink::WebMessagePortChannelArray* channels) {
DCHECK(script_context_);
- script_context_->PostMessageToDocument(client_id, message,
- make_scoped_ptr(channels));
+ script_context_->PostMessageToClient(
+ uuid, message, make_scoped_ptr(channels));
}
void EmbeddedWorkerContextClient::postMessageToCrossOriginClient(
@@ -408,9 +408,10 @@ void EmbeddedWorkerContextClient::postMessageToCrossOriginClient(
}
void EmbeddedWorkerContextClient::focus(
- int client_id, blink::WebServiceWorkerClientCallbacks* callback) {
+ const blink::WebString& uuid,
+ blink::WebServiceWorkerClientCallbacks* callback) {
DCHECK(script_context_);
- script_context_->FocusClient(client_id, callback);
+ script_context_->FocusClient(uuid, callback);
}
void EmbeddedWorkerContextClient::skipWaiting(

Powered by Google App Engine
This is Rietveld 408576698