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/renderer/render_thread_impl.cc

Issue 2106693002: Convert EmbeddedWorker to InterfaceRegistry/Provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index de3c9f0c240da75edb7615aecbbc763c6bd5a0ee..9ae306d9d32d6ae4071530592ed08338943a4b22 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -360,8 +360,8 @@ void CreateFrameFactory(mojom::FrameFactoryRequest request) {
}
void SetupEmbeddedWorkerOnWorkerThread(
- shell::mojom::InterfaceProviderRequest services,
- shell::mojom::InterfaceProviderPtrInfo exposed_services) {
+ shell::mojom::InterfaceProviderRequest request,
+ shell::mojom::InterfaceProviderPtrInfo remote_interfaces) {
ServiceWorkerContextClient* client =
ServiceWorkerContextClient::ThreadSpecificInstance();
// It is possible for client to be null if for some reason the worker died
@@ -369,8 +369,8 @@ void SetupEmbeddedWorkerOnWorkerThread(
// nothing and let mojo close the connection.
if (!client)
return;
- client->BindServiceRegistry(std::move(services),
- mojo::MakeProxy(std::move(exposed_services)));
+ client->BindInterfaceProviders(std::move(request),
+ mojo::MakeProxy(std::move(remote_interfaces)));
}
class EmbeddedWorkerSetupImpl : public mojom::EmbeddedWorkerSetup {
@@ -381,12 +381,12 @@ class EmbeddedWorkerSetupImpl : public mojom::EmbeddedWorkerSetup {
void ExchangeInterfaceProviders(
int32_t thread_id,
- shell::mojom::InterfaceProviderRequest services,
- shell::mojom::InterfaceProviderPtr exposed_services) override {
+ shell::mojom::InterfaceProviderRequest request,
+ shell::mojom::InterfaceProviderPtr remote_interfaces) override {
WorkerThreadRegistry::Instance()->GetTaskRunnerFor(thread_id)->PostTask(
FROM_HERE,
- base::Bind(&SetupEmbeddedWorkerOnWorkerThread, base::Passed(&services),
- base::Passed(exposed_services.PassInterface())));
+ base::Bind(&SetupEmbeddedWorkerOnWorkerThread, base::Passed(&request),
+ base::Passed(remote_interfaces.PassInterface())));
}
private:

Powered by Google App Engine
This is Rietveld 408576698