| 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 a009d30c4920bee905cab895320cac27fd6d9a8a..a509c3a3c4214e942f427625ce08dcb8cd045617 100644
|
| --- a/content/renderer/service_worker/service_worker_context_client.h
|
| +++ b/content/renderer/service_worker/service_worker_context_client.h
|
| @@ -21,7 +21,10 @@
|
| #include "base/time/time.h"
|
| #include "content/child/webmessageportchannel_impl.h"
|
| #include "content/common/service_worker/service_worker_types.h"
|
| +#include "content/renderer/mojo/blink_service_registry_impl.h"
|
| #include "ipc/ipc_listener.h"
|
| +#include "services/shell/public/cpp/interface_provider.h"
|
| +#include "services/shell/public/cpp/interface_registry.h"
|
| #include "services/shell/public/interfaces/interface_provider.mojom.h"
|
| #include "third_party/WebKit/public/platform/WebMessagePortChannel.h"
|
| #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerError.h"
|
| @@ -29,7 +32,6 @@
|
| #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h"
|
| #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h"
|
| #include "v8/include/v8.h"
|
| -
|
| struct ServiceWorkerMsg_ExtendableMessageEvent_Params;
|
|
|
| namespace base {
|
| @@ -49,8 +51,14 @@ namespace IPC {
|
| class Message;
|
| }
|
|
|
| +namespace shell {
|
| +class InterfaceProvider;
|
| +class InterfaceRegistry;
|
| +}
|
| +
|
| namespace content {
|
|
|
| +class BlinkServiceRegistryImpl;
|
| struct PlatformNotificationData;
|
| struct PushEventPayload;
|
| struct ServiceWorkerClientInfo;
|
| @@ -65,7 +73,7 @@ class ServiceWorkerContextClient
|
| : public blink::WebServiceWorkerContextClient {
|
| public:
|
| using SyncCallback =
|
| - base::Callback<void(blink::mojom::ServiceWorkerEventStatus)>;
|
| + base::Callback<void(ServiceWorkerStatusCode)>;
|
|
|
| // Returns a thread-specific client instance. This does NOT create a
|
| // new instance.
|
| @@ -177,6 +185,7 @@ class ServiceWorkerContextClient
|
| void registerForeignFetchScopes(
|
| const blink::WebVector<blink::WebURL>& sub_scopes,
|
| const blink::WebVector<blink::WebSecurityOrigin>& origins) override;
|
| + blink::ServiceRegistry* serviceRegistry() override;
|
|
|
| virtual void DispatchSyncEvent(
|
| const std::string& tag,
|
|
|