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

Unified Diff: content/renderer/service_worker/embedded_worker_instance_client_impl.h

Issue 2606593002: [ServiceWorker] Associate interfaces.
Patch Set: Fix unit tests Created 4 years 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_instance_client_impl.h
diff --git a/content/renderer/service_worker/embedded_worker_instance_client_impl.h b/content/renderer/service_worker/embedded_worker_instance_client_impl.h
index 1b3d27d99457acdfe6444299d42c946c811eb963..4f2dea4bb78fd86699056bb8abe13ba0e5c389b2 100644
--- a/content/renderer/service_worker/embedded_worker_instance_client_impl.h
+++ b/content/renderer/service_worker/embedded_worker_instance_client_impl.h
@@ -10,8 +10,7 @@
#include "content/child/child_thread_impl.h"
#include "content/common/service_worker/embedded_worker.mojom.h"
#include "content/renderer/service_worker/embedded_worker_dispatcher.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/public/cpp/bindings/interface_ptr.h"
+#include "mojo/public/cpp/bindings/associated_binding.h"
namespace content {
@@ -22,7 +21,7 @@ class EmbeddedWorkerInstanceClientImpl
public:
static void Create(
EmbeddedWorkerDispatcher* dispatcher,
- mojo::InterfaceRequest<mojom::EmbeddedWorkerInstanceClient> request);
+ mojom::EmbeddedWorkerInstanceClientAssociatedRequest request);
~EmbeddedWorkerInstanceClientImpl() override;
@@ -32,7 +31,7 @@ class EmbeddedWorkerInstanceClientImpl
private:
EmbeddedWorkerInstanceClientImpl(
EmbeddedWorkerDispatcher* dispatcher,
- mojo::InterfaceRequest<mojom::EmbeddedWorkerInstanceClient> request);
+ mojom::EmbeddedWorkerInstanceClientAssociatedRequest request);
// mojom::EmbeddedWorkerInstanceClient implementation
void StartWorker(
@@ -44,7 +43,7 @@ class EmbeddedWorkerInstanceClientImpl
void OnError();
EmbeddedWorkerDispatcher* dispatcher_;
- mojo::Binding<mojom::EmbeddedWorkerInstanceClient> binding_;
+ mojo::AssociatedBinding<mojom::EmbeddedWorkerInstanceClient> binding_;
// This is valid before StartWorker is called. After that, this object
// will be passed to ServiceWorkerContextClient.
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/service_worker/embedded_worker_instance_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698