| Index: third_party/WebKit/Source/web/WebDevToolsAgentImpl.h
|
| diff --git a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.h b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.h
|
| index 9ce980bbd4d916c3cac19b2f140fd06d3de5d221..e1980180699cfd0f8f219026394ec313e0ca1371 100644
|
| --- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.h
|
| +++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.h
|
| @@ -85,7 +85,7 @@ public:
|
| WebDevToolsAgentClient* client() { return m_client; }
|
| InspectorOverlay* overlay() const { return m_overlay.get(); }
|
| void flushPendingProtocolNotifications();
|
| - void dispatchMessageFromFrontend(const String& message);
|
| + void dispatchMessageFromFrontend(int sessionId, const String& message);
|
| void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>);
|
| static void webViewImplClosed(WebViewImpl*);
|
| static void webFrameWidgetImplClosed(WebFrameWidgetImpl*);
|
| @@ -98,11 +98,11 @@ public:
|
| void layerTreeViewChanged(WebLayerTreeView*);
|
|
|
| // WebDevToolsAgent implementation.
|
| - void attach(const WebString& hostId) override;
|
| - void reattach(const WebString& hostId, const WebString& savedState) override;
|
| + void attach(const WebString& hostId, int sessionId) override;
|
| + void reattach(const WebString& hostId, int sessionId, const WebString& savedState) override;
|
| void detach() override;
|
| void continueProgram() override;
|
| - void dispatchOnInspectorBackend(const WebString& message) override;
|
| + void dispatchOnInspectorBackend(int sessionId, const WebString& message) override;
|
| void inspectElementAt(const WebPoint&) override;
|
| void evaluateInWebInspector(long callId, const WebString& script) override;
|
| WebString evaluateInWebInspectorOverlay(const WebString& script) override;
|
| @@ -121,7 +121,7 @@ private:
|
| void resumeStartup() override;
|
|
|
| // InspectorFrontendChannel implementation.
|
| - void sendProtocolResponse(int callId, PassRefPtr<JSONObject> message) override;
|
| + void sendProtocolResponse(int sessionId, int callId, PassRefPtr<JSONObject> message) override;
|
| void sendProtocolNotification(PassRefPtr<JSONObject> message) override;
|
| void flush() override;
|
|
|
| @@ -159,8 +159,9 @@ private:
|
| InspectorAgentRegistry m_agents;
|
| bool m_deferredAgentsInitialized;
|
|
|
| - typedef Vector<RefPtr<JSONObject>> NotificationQueue;
|
| + typedef Vector<std::pair<int, RefPtr<JSONObject>>> NotificationQueue;
|
| NotificationQueue m_notificationQueue;
|
| + int m_sessionId;
|
| String m_stateCookie;
|
|
|
| friend class DebuggerTask;
|
|
|