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 1c5bf915515e4212d8cce1e227f489f58b646b06..1bf375a836105102aa2921c88c19dbb82314c996 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_; |
+ |
// Capture timestamps for UMA |
std::map<int, base::TimeTicks> activate_start_timings_; |
std::map<int, base::TimeTicks> fetch_start_timings_; |