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

Unified Diff: Source/modules/navigatorconnect/ServicePortCollection.h

Issue 1210633002: Update navigator.services API to use the new services.onconnect event [1/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-part3
Patch Set: fix linking error Created 5 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: Source/modules/navigatorconnect/ServicePortCollection.h
diff --git a/Source/modules/navigatorconnect/ServicePortCollection.h b/Source/modules/navigatorconnect/ServicePortCollection.h
index b44b11c5af3b0fc166ef805344e0a711efce8e37..9419a52a7adc97db5e0d8653f45adc14c195b250 100644
--- a/Source/modules/navigatorconnect/ServicePortCollection.h
+++ b/Source/modules/navigatorconnect/ServicePortCollection.h
@@ -6,10 +6,12 @@
#define ServicePortCollection_h
#include "bindings/core/v8/ScriptPromise.h"
+#include "bindings/core/v8/SerializedScriptValueFactory.h"
chasej 2015/07/02 20:45:28 Is this include needed? It doesn't seem so for th
Marijn Kruisselbrink 2015/07/07 16:42:49 No, it's not needed here. Must have been a leftove
#include "core/dom/ContextLifecycleObserver.h"
#include "core/events/EventTarget.h"
#include "modules/ModulesExport.h"
#include "platform/heap/Handle.h"
+#include "public/platform/modules/navigator_services/WebServicePortCallbacks.h"
#include "public/platform/modules/navigator_services/WebServicePortProvider.h"
#include "public/platform/modules/navigator_services/WebServicePortProviderClient.h"
#include "wtf/RefCounted.h"
@@ -57,6 +59,8 @@ public:
// WebServicePortProviderClient overrides.
void postMessage(WebServicePortID, const WebString&, const WebMessagePortChannelArray&) override;
+ void dispatchConnectEvent(PassOwnPtr<WebServicePortConnectEventCallbacks>, const WebURL& targetURL, const WebString& origin, WebServicePortID);
+
DECLARE_VIRTUAL_TRACE();
private:

Powered by Google App Engine
This is Rietveld 408576698