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

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

Issue 1221503003: Add a mojo ServiceRegistry to embedded workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move creation and destruction of ServiceRegistry to the correct spots on the browser side Created 5 years, 5 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/service_worker_context_client.h
diff --git a/content/renderer/service_worker/service_worker_context_client.h b/content/renderer/service_worker/service_worker_context_client.h
index 9dfb01deb27e3e41dafceb3af3a9034a847aafe3..cbc1bac5e4c05d1a599240079f534075eef56052 100644
--- a/content/renderer/service_worker/service_worker_context_client.h
+++ b/content/renderer/service_worker/service_worker_context_client.h
@@ -15,6 +15,7 @@
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "content/child/webmessageportchannel_impl.h"
+#include "content/common/mojo/service_registry_impl.h"
#include "content/common/service_worker/service_worker_types.h"
#include "ipc/ipc_listener.h"
#include "third_party/WebKit/public/platform/WebGeofencingEventType.h"
@@ -71,6 +72,10 @@ class ServiceWorkerContextClient
int embedded_worker_id,
const IPC::Message& message);
+ void BindServiceRegistry(
+ mojo::InterfaceRequest<mojo::ServiceProvider> services,
+ mojo::ServiceProviderPtr exposed_services);
+
// WebServiceWorkerContextClient overrides.
virtual blink::WebURL scope() const;
virtual void getClients(const blink::WebServiceWorkerClientQueryOptions&,
@@ -219,6 +224,8 @@ class ServiceWorkerContextClient
// destructed on the worker thread in willDestroyWorkerContext.
scoped_ptr<WorkerContextData> context_;
+ ServiceRegistryImpl service_registry_;
michaeln 2015/07/15 21:18:52 The ServiceWorkerContextClient is used on multiple
Marijn Kruisselbrink 2015/07/15 21:45:58 Hmm, yeah, that's a good point. I'm not sure if Se
+
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
};

Powered by Google App Engine
This is Rietveld 408576698