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

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

Issue 2168513004: [DO NOT COMMIT] ServiceWorker: First touch of mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove an unnecessary file Created 4 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 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,

Powered by Google App Engine
This is Rietveld 408576698