Changeset 238206 in webkit
- Timestamp:
- Nov 14, 2018, 3:56:07 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 34 edited
-
JavaScriptCore/ChangeLog (modified) (1 diff)
-
JavaScriptCore/inspector/InspectorFrontendRouter.cpp (modified) (1 diff)
-
JavaScriptCore/inspector/InspectorFrontendRouter.h (modified) (1 diff)
-
JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp (modified) (2 diffs)
-
JavaScriptCore/inspector/JSGlobalObjectInspectorController.h (modified) (1 diff)
-
JavaScriptCore/inspector/remote/RemoteControllableTarget.h (modified) (1 diff)
-
JavaScriptCore/inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm (modified) (3 diffs)
-
JavaScriptCore/inspector/remote/glib/RemoteConnectionToTargetGlib.cpp (modified) (3 diffs)
-
JavaScriptCore/runtime/JSGlobalObjectDebuggable.cpp (modified) (2 diffs)
-
JavaScriptCore/runtime/JSGlobalObjectDebuggable.h (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/inspector/InspectorController.cpp (modified) (3 diffs)
-
WebCore/inspector/InspectorController.h (modified) (1 diff)
-
WebCore/inspector/WorkerInspectorController.cpp (modified) (2 diffs)
-
WebCore/page/PageDebuggable.cpp (modified) (1 diff)
-
WebCore/page/PageDebuggable.h (modified) (1 diff)
-
WebCore/testing/Internals.cpp (modified) (2 diffs)
-
WebCore/workers/service/context/ServiceWorkerDebuggable.cpp (modified) (1 diff)
-
WebCore/workers/service/context/ServiceWorkerDebuggable.h (modified) (1 diff)
-
WebCore/workers/service/context/ServiceWorkerInspectorProxy.cpp (modified) (2 diffs)
-
WebCore/workers/service/context/ServiceWorkerInspectorProxy.h (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/UIProcess/Automation/WebAutomationSession.cpp (modified) (3 diffs)
-
WebKit/UIProcess/Automation/WebAutomationSession.h (modified) (1 diff)
-
WebKit/UIProcess/WebPageDebuggable.cpp (modified) (1 diff)
-
WebKit/UIProcess/WebPageDebuggable.h (modified) (1 diff)
-
WebKit/UIProcess/WebPageInspectorController.cpp (modified) (2 diffs)
-
WebKit/UIProcess/WebPageInspectorController.h (modified) (1 diff)
-
WebKit/WebProcess/WebPage/WebInspector.cpp (modified) (1 diff)
-
WebKit/WebProcess/WebPage/WebPageInspectorTarget.cpp (modified) (2 diffs)
-
WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.mm (modified) (1 diff)
-
WebKitLegacy/win/ChangeLog (modified) (1 diff)
-
WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r238192 r238206 1 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Pass Inspector::FrontendChannel as a reference connect/disconnect methods 4 https://bugs.webkit.org/show_bug.cgi?id=191612 5 6 Reviewed by Matt Baker. 7 8 * inspector/InspectorFrontendRouter.cpp: 9 (Inspector::FrontendRouter::connectFrontend): 10 (Inspector::FrontendRouter::disconnectFrontend): 11 * inspector/InspectorFrontendRouter.h: 12 * inspector/JSGlobalObjectInspectorController.cpp: 13 (Inspector::JSGlobalObjectInspectorController::connectFrontend): 14 (Inspector::JSGlobalObjectInspectorController::disconnectFrontend): 15 * inspector/JSGlobalObjectInspectorController.h: 16 * inspector/remote/RemoteControllableTarget.h: 17 * inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm: 18 (Inspector::RemoteConnectionToTarget::setup): 19 (Inspector::RemoteConnectionToTarget::close): 20 * inspector/remote/glib/RemoteConnectionToTargetGlib.cpp: 21 (Inspector::RemoteConnectionToTarget::setup): 22 (Inspector::RemoteConnectionToTarget::close): 23 * runtime/JSGlobalObjectDebuggable.cpp: 24 (JSC::JSGlobalObjectDebuggable::connect): 25 (JSC::JSGlobalObjectDebuggable::disconnect): 26 * runtime/JSGlobalObjectDebuggable.h: 27 1 28 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 29 -
trunk/Source/JavaScriptCore/inspector/InspectorFrontendRouter.cpp
r189433 r238206 37 37 } 38 38 39 void FrontendRouter::connectFrontend(FrontendChannel *connection)39 void FrontendRouter::connectFrontend(FrontendChannel& connection) 40 40 { 41 ASSERT_ARG(connection, connection); 42 43 if (m_connections.contains(connection)) { 41 if (m_connections.contains(&connection)) { 44 42 ASSERT_NOT_REACHED(); 45 43 return; 46 44 } 47 45 48 m_connections.append( connection);46 m_connections.append(&connection); 49 47 } 50 48 51 void FrontendRouter::disconnectFrontend(FrontendChannel *connection)49 void FrontendRouter::disconnectFrontend(FrontendChannel& connection) 52 50 { 53 ASSERT_ARG(connection, connection); 54 55 if (!m_connections.contains(connection)) { 51 if (!m_connections.contains(&connection)) { 56 52 ASSERT_NOT_REACHED(); 57 53 return; 58 54 } 59 55 60 m_connections.removeFirst( connection);56 m_connections.removeFirst(&connection); 61 57 } 62 58 -
trunk/Source/JavaScriptCore/inspector/InspectorFrontendRouter.h
r225231 r238206 44 44 unsigned frontendCount() const { return m_connections.size(); } 45 45 46 void connectFrontend(FrontendChannel *);47 void disconnectFrontend(FrontendChannel *);46 void connectFrontend(FrontendChannel&); 47 void disconnectFrontend(FrontendChannel&); 48 48 void disconnectAllFrontends(); 49 49 -
trunk/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp
r233139 r238206 120 120 } 121 121 122 void JSGlobalObjectInspectorController::connectFrontend(FrontendChannel* frontendChannel, bool isAutomaticInspection, bool immediatelyPause) 123 { 124 ASSERT_ARG(frontendChannel, frontendChannel); 125 122 void JSGlobalObjectInspectorController::connectFrontend(FrontendChannel& frontendChannel, bool isAutomaticInspection, bool immediatelyPause) 123 { 126 124 m_isAutomaticInspection = isAutomaticInspection; 127 125 m_pauseAfterInitialization = immediatelyPause; … … 148 146 } 149 147 150 void JSGlobalObjectInspectorController::disconnectFrontend(FrontendChannel* frontendChannel) 151 { 152 ASSERT_ARG(frontendChannel, frontendChannel); 153 148 void JSGlobalObjectInspectorController::disconnectFrontend(FrontendChannel& frontendChannel) 149 { 154 150 // FIXME: change this to notify agents which frontend has disconnected (by id). 155 151 m_agents.willDestroyFrontendAndBackend(DisconnectReason::InspectorDestroyed); -
trunk/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.h
r217509 r238206 69 69 ~JSGlobalObjectInspectorController(); 70 70 71 void connectFrontend(FrontendChannel *, bool isAutomaticInspection, bool immediatelyPause);72 void disconnectFrontend(FrontendChannel *);71 void connectFrontend(FrontendChannel&, bool isAutomaticInspection, bool immediatelyPause); 72 void disconnectFrontend(FrontendChannel&); 73 73 74 74 void dispatchMessageFromFrontend(const String&); -
trunk/Source/JavaScriptCore/inspector/remote/RemoteControllableTarget.h
r225654 r238206 46 46 void update(); 47 47 48 virtual void connect(FrontendChannel *, bool isAutomaticConnection = false, bool immediatelyPause = false) = 0;49 virtual void disconnect(FrontendChannel *) = 0;48 virtual void connect(FrontendChannel&, bool isAutomaticConnection = false, bool immediatelyPause = false) = 0; 49 virtual void disconnect(FrontendChannel&) = 0; 50 50 51 51 unsigned targetIdentifier() const { return m_identifier; } -
trunk/Source/JavaScriptCore/inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm
r237266 r238206 172 172 } else if (is<RemoteInspectionTarget>(m_target)) { 173 173 auto castedTarget = downcast<RemoteInspectionTarget>(m_target); 174 castedTarget->connect( this, isAutomaticInspection, automaticallyPause);174 castedTarget->connect(*this, isAutomaticInspection, automaticallyPause); 175 175 m_connected = true; 176 176 … … 178 178 } else if (is<RemoteAutomationTarget>(m_target)) { 179 179 auto castedTarget = downcast<RemoteAutomationTarget>(m_target); 180 castedTarget->connect( this);180 castedTarget->connect(*this); 181 181 m_connected = true; 182 182 … … 207 207 if (m_target) { 208 208 if (m_connected) 209 m_target->disconnect( this);209 m_target->disconnect(*this); 210 210 211 211 m_target = nullptr; -
trunk/Source/JavaScriptCore/inspector/remote/glib/RemoteConnectionToTargetGlib.cpp
r217509 r238206 57 57 } else if (is<RemoteInspectionTarget>(m_target)) { 58 58 auto target = downcast<RemoteInspectionTarget>(m_target); 59 target->connect( this, isAutomaticInspection, automaticallyPause);59 target->connect(*this, isAutomaticInspection, automaticallyPause); 60 60 m_connected = true; 61 61 … … 63 63 } else if (is<RemoteAutomationTarget>(m_target)) { 64 64 auto target = downcast<RemoteAutomationTarget>(m_target); 65 target->connect( this);65 target->connect(*this); 66 66 m_connected = true; 67 67 … … 94 94 95 95 if (m_connected) 96 m_target->disconnect( this);96 m_target->disconnect(*this); 97 97 98 98 m_target = nullptr; -
trunk/Source/JavaScriptCore/runtime/JSGlobalObjectDebuggable.cpp
r233122 r238206 51 51 } 52 52 53 void JSGlobalObjectDebuggable::connect(FrontendChannel *frontendChannel, bool automaticInspection, bool immediatelyPause)53 void JSGlobalObjectDebuggable::connect(FrontendChannel& frontendChannel, bool automaticInspection, bool immediatelyPause) 54 54 { 55 55 JSLockHolder locker(&m_globalObject.vm()); … … 58 58 } 59 59 60 void JSGlobalObjectDebuggable::disconnect(FrontendChannel *frontendChannel)60 void JSGlobalObjectDebuggable::disconnect(FrontendChannel& frontendChannel) 61 61 { 62 62 JSLockHolder locker(&m_globalObject.vm()); -
trunk/Source/JavaScriptCore/runtime/JSGlobalObjectDebuggable.h
r225654 r238206 52 52 bool hasLocalDebugger() const final { return false; } 53 53 54 void connect(Inspector::FrontendChannel *, bool isAutomaticConnection = false, bool immediatelyPause = false) final;55 void disconnect(Inspector::FrontendChannel *) final;54 void connect(Inspector::FrontendChannel&, bool isAutomaticConnection = false, bool immediatelyPause = false) final; 55 void disconnect(Inspector::FrontendChannel&) final; 56 56 void dispatchMessageFromRemote(const String& message) final; 57 57 -
trunk/Source/WebCore/ChangeLog
r238200 r238206 1 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Pass Inspector::FrontendChannel as a reference connect/disconnect methods 4 https://bugs.webkit.org/show_bug.cgi?id=191612 5 6 Reviewed by Matt Baker. 7 8 * inspector/InspectorController.cpp: 9 (WebCore::InspectorController::connectFrontend): 10 (WebCore::InspectorController::disconnectFrontend): 11 (WebCore::InspectorController::show): 12 * inspector/InspectorController.h: 13 * inspector/WorkerInspectorController.cpp: 14 (WebCore::WorkerInspectorController::connectFrontend): 15 (WebCore::WorkerInspectorController::disconnectFrontend): 16 * page/PageDebuggable.cpp: 17 (WebCore::PageDebuggable::connect): 18 (WebCore::PageDebuggable::disconnect): 19 * page/PageDebuggable.h: 20 * testing/Internals.cpp: 21 (WebCore::InspectorStubFrontend::InspectorStubFrontend): 22 (WebCore::InspectorStubFrontend::closeWindow): 23 * workers/service/context/ServiceWorkerDebuggable.cpp: 24 (WebCore::ServiceWorkerDebuggable::connect): 25 (WebCore::ServiceWorkerDebuggable::disconnect): 26 * workers/service/context/ServiceWorkerDebuggable.h: 27 * workers/service/context/ServiceWorkerInspectorProxy.cpp: 28 (WebCore::ServiceWorkerInspectorProxy::connectToWorker): 29 (WebCore::ServiceWorkerInspectorProxy::disconnectFromWorker): 30 * workers/service/context/ServiceWorkerInspectorProxy.h: 31 1 32 2018-11-14 Timothy Hatcher <timothy@apple.com> 2 33 -
trunk/Source/WebCore/inspector/InspectorController.cpp
r238192 r238206 255 255 } 256 256 257 void InspectorController::connectFrontend(Inspector::FrontendChannel* frontendChannel, bool isAutomaticInspection, bool immediatelyPause) 258 { 259 ASSERT_ARG(frontendChannel, frontendChannel); 257 void InspectorController::connectFrontend(Inspector::FrontendChannel& frontendChannel, bool isAutomaticInspection, bool immediatelyPause) 258 { 260 259 ASSERT(m_inspectorClient); 261 260 … … 286 285 } 287 286 288 void InspectorController::disconnectFrontend(FrontendChannel *frontendChannel)287 void InspectorController::disconnectFrontend(FrontendChannel& frontendChannel) 289 288 { 290 289 m_frontendRouter->disconnectFrontend(frontendChannel); … … 363 362 m_inspectorClient->bringFrontendToFront(); 364 363 else if (Inspector::FrontendChannel* frontendChannel = m_inspectorClient->openLocalFrontend(this)) 365 connectFrontend( frontendChannel);364 connectFrontend(*frontendChannel); 366 365 } 367 366 -
trunk/Source/WebCore/inspector/InspectorController.h
r238192 r238206 92 92 bool hasRemoteFrontend() const; 93 93 94 WEBCORE_EXPORT void connectFrontend(Inspector::FrontendChannel *, bool isAutomaticInspection = false, bool immediatelyPause = false);95 WEBCORE_EXPORT void disconnectFrontend(Inspector::FrontendChannel *);94 WEBCORE_EXPORT void connectFrontend(Inspector::FrontendChannel&, bool isAutomaticInspection = false, bool immediatelyPause = false); 95 WEBCORE_EXPORT void disconnectFrontend(Inspector::FrontendChannel&); 96 96 WEBCORE_EXPORT void disconnectAllFrontends(); 97 97 -
trunk/Source/WebCore/inspector/WorkerInspectorController.cpp
r237997 r238206 115 115 116 116 m_forwardingChannel = std::make_unique<WorkerToPageFrontendChannel>(m_workerGlobalScope); 117 m_frontendRouter->connectFrontend( m_forwardingChannel.get());117 m_frontendRouter->connectFrontend(*m_forwardingChannel.get()); 118 118 m_agents.didCreateFrontendAndBackend(&m_frontendRouter.get(), &m_backendDispatcher.get()); 119 119 } … … 131 131 132 132 m_agents.willDestroyFrontendAndBackend(reason); 133 m_frontendRouter->disconnectFrontend( m_forwardingChannel.get());133 m_frontendRouter->disconnectFrontend(*m_forwardingChannel.get()); 134 134 m_forwardingChannel = nullptr; 135 135 } -
trunk/Source/WebCore/page/PageDebuggable.cpp
r238192 r238206 70 70 } 71 71 72 void PageDebuggable::connect( Inspector::FrontendChannel*channel, bool isAutomaticConnection, bool immediatelyPause)72 void PageDebuggable::connect(FrontendChannel& channel, bool isAutomaticConnection, bool immediatelyPause) 73 73 { 74 InspectorController& inspectorController = m_page.inspectorController(); 75 inspectorController.connectFrontend(channel, isAutomaticConnection, immediatelyPause); 74 m_page.inspectorController().connectFrontend(channel, isAutomaticConnection, immediatelyPause); 76 75 } 77 76 78 void PageDebuggable::disconnect( Inspector::FrontendChannel*channel)77 void PageDebuggable::disconnect(FrontendChannel& channel) 79 78 { 80 InspectorController& inspectorController = m_page.inspectorController(); 81 inspectorController.disconnectFrontend(channel); 79 m_page.inspectorController().disconnectFrontend(channel); 82 80 } 83 81 -
trunk/Source/WebCore/page/PageDebuggable.h
r238192 r238206 48 48 bool hasLocalDebugger() const final; 49 49 50 void connect(Inspector::FrontendChannel *, bool isAutomaticConnection = false, bool immediatelyPause = false) final;51 void disconnect(Inspector::FrontendChannel *) final;50 void connect(Inspector::FrontendChannel&, bool isAutomaticConnection = false, bool immediatelyPause = false) final; 51 void disconnect(Inspector::FrontendChannel&) final; 52 52 void dispatchMessageFromRemote(const String& message) final; 53 53 void setIndicating(bool) final; -
trunk/Source/WebCore/testing/Internals.cpp
r238155 r238206 336 336 337 337 m_frontendController.setInspectorFrontendClient(this); 338 inspectedPage.inspectorController().connectFrontend( this);338 inspectedPage.inspectorController().connectFrontend(*this); 339 339 } 340 340 … … 350 350 351 351 m_frontendController.setInspectorFrontendClient(nullptr); 352 inspectedPage()->inspectorController().disconnectFrontend( this);352 inspectedPage()->inspectorController().disconnectFrontend(*this); 353 353 354 354 m_frontendWindow->close(); -
trunk/Source/WebCore/workers/service/context/ServiceWorkerDebuggable.cpp
r225633 r238206 43 43 } 44 44 45 void ServiceWorkerDebuggable::connect( Inspector::FrontendChannel*channel, bool, bool)45 void ServiceWorkerDebuggable::connect(FrontendChannel& channel, bool, bool) 46 46 { 47 47 m_serviceWorkerThreadProxy.inspectorProxy().connectToWorker(channel); 48 48 } 49 49 50 void ServiceWorkerDebuggable::disconnect( Inspector::FrontendChannel*channel)50 void ServiceWorkerDebuggable::disconnect(FrontendChannel& channel) 51 51 { 52 52 m_serviceWorkerThreadProxy.inspectorProxy().disconnectFromWorker(channel); -
trunk/Source/WebCore/workers/service/context/ServiceWorkerDebuggable.h
r233122 r238206 50 50 bool hasLocalDebugger() const final { return false; } 51 51 52 void connect(Inspector::FrontendChannel *, bool isAutomaticConnection = false, bool immediatelyPause = false) final;53 void disconnect(Inspector::FrontendChannel *) final;52 void connect(Inspector::FrontendChannel&, bool isAutomaticConnection = false, bool immediatelyPause = false) final; 53 void disconnect(Inspector::FrontendChannel&) final; 54 54 void dispatchMessageFromRemote(const String& message) final; 55 55 -
trunk/Source/WebCore/workers/service/context/ServiceWorkerInspectorProxy.cpp
r228218 r238206 58 58 } 59 59 60 void ServiceWorkerInspectorProxy::connectToWorker(FrontendChannel *channel)60 void ServiceWorkerInspectorProxy::connectToWorker(FrontendChannel& channel) 61 61 { 62 m_channel = channel;62 m_channel = &channel; 63 63 64 64 m_serviceWorkerThreadProxy.thread().runLoop().postTaskForMode([] (ScriptExecutionContext& context) { … … 67 67 } 68 68 69 void ServiceWorkerInspectorProxy::disconnectFromWorker(FrontendChannel *channel)69 void ServiceWorkerInspectorProxy::disconnectFromWorker(FrontendChannel& channel) 70 70 { 71 ASSERT_UNUSED(channel, channel == m_channel);71 ASSERT_UNUSED(channel, &channel == m_channel); 72 72 m_channel = nullptr; 73 73 -
trunk/Source/WebCore/workers/service/context/ServiceWorkerInspectorProxy.h
r224368 r238206 50 50 void serviceWorkerTerminated(); 51 51 52 void connectToWorker(Inspector::FrontendChannel *);53 void disconnectFromWorker(Inspector::FrontendChannel *);52 void connectToWorker(Inspector::FrontendChannel&); 53 void disconnectFromWorker(Inspector::FrontendChannel&); 54 54 void sendMessageToWorker(const String&); 55 55 void sendMessageFromWorkerToFrontend(const String&); -
trunk/Source/WebKit/ChangeLog
r238195 r238206 1 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Pass Inspector::FrontendChannel as a reference connect/disconnect methods 4 https://bugs.webkit.org/show_bug.cgi?id=191612 5 6 Reviewed by Matt Baker. 7 8 * UIProcess/Automation/WebAutomationSession.cpp: 9 (WebKit::WebAutomationSession::connect): 10 (WebKit::WebAutomationSession::disconnect): 11 (WebKit::WebAutomationSession::terminate): 12 * UIProcess/Automation/WebAutomationSession.h: 13 * UIProcess/WebPageDebuggable.cpp: 14 (WebKit::WebPageDebuggable::connect): 15 (WebKit::WebPageDebuggable::disconnect): 16 * UIProcess/WebPageDebuggable.h: 17 * UIProcess/WebPageInspectorController.cpp: 18 (WebKit::WebPageInspectorController::connectFrontend): 19 (WebKit::WebPageInspectorController::disconnectFrontend): 20 * UIProcess/WebPageInspectorController.h: 21 * WebProcess/WebPage/WebInspector.cpp: 22 (WebKit::WebInspector::close): 23 * WebProcess/WebPage/WebPageInspectorTarget.cpp: 24 (WebKit::WebPageInspectorTarget::connect): 25 (WebKit::WebPageInspectorTarget::disconnect): 26 1 27 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 28 -
trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.cpp
r236939 r238206 119 119 } 120 120 121 void WebAutomationSession::connect(Inspector::FrontendChannel *channel, bool isAutomaticConnection, bool immediatelyPause)121 void WebAutomationSession::connect(Inspector::FrontendChannel& channel, bool isAutomaticConnection, bool immediatelyPause) 122 122 { 123 123 UNUSED_PARAM(isAutomaticConnection); 124 124 UNUSED_PARAM(immediatelyPause); 125 125 126 m_remoteChannel = channel;126 m_remoteChannel = &channel; 127 127 m_frontendRouter->connectFrontend(channel); 128 128 … … 130 130 } 131 131 132 void WebAutomationSession::disconnect(Inspector::FrontendChannel *channel)133 { 134 ASSERT( channel == m_remoteChannel);132 void WebAutomationSession::disconnect(Inspector::FrontendChannel& channel) 133 { 134 ASSERT(&channel == m_remoteChannel); 135 135 terminate(); 136 136 } … … 153 153 if (Inspector::FrontendChannel* channel = m_remoteChannel) { 154 154 m_remoteChannel = nullptr; 155 m_frontendRouter->disconnectFrontend( channel);155 m_frontendRouter->disconnectFrontend(*channel); 156 156 } 157 157 -
trunk/Source/WebKit/UIProcess/Automation/WebAutomationSession.h
r233131 r238206 131 131 String name() const override { return m_sessionIdentifier; } 132 132 void dispatchMessageFromRemote(const String& message) override; 133 void connect(Inspector::FrontendChannel *, bool isAutomaticConnection = false, bool immediatelyPause = false) override;134 void disconnect(Inspector::FrontendChannel *) override;133 void connect(Inspector::FrontendChannel&, bool isAutomaticConnection = false, bool immediatelyPause = false) override; 134 void disconnect(Inspector::FrontendChannel&) override; 135 135 #endif 136 136 void terminate(); -
trunk/Source/WebKit/UIProcess/WebPageDebuggable.cpp
r238192 r238206 67 67 } 68 68 69 void WebPageDebuggable::connect( Inspector::FrontendChannel*channel, bool isAutomaticConnection, bool immediatelyPause)69 void WebPageDebuggable::connect(FrontendChannel& channel, bool isAutomaticConnection, bool immediatelyPause) 70 70 { 71 71 m_page.inspectorController().connectFrontend(channel, isAutomaticConnection, immediatelyPause); 72 72 } 73 73 74 void WebPageDebuggable::disconnect( Inspector::FrontendChannel*channel)74 void WebPageDebuggable::disconnect(FrontendChannel& channel) 75 75 { 76 76 m_page.inspectorController().disconnectFrontend(channel); -
trunk/Source/WebKit/UIProcess/WebPageDebuggable.h
r238192 r238206 48 48 bool hasLocalDebugger() const final; 49 49 50 void connect(Inspector::FrontendChannel *, bool isAutomaticConnection = false, bool immediatelyPause = false) final;51 void disconnect(Inspector::FrontendChannel *) final;50 void connect(Inspector::FrontendChannel&, bool isAutomaticConnection = false, bool immediatelyPause = false) final; 51 void disconnect(Inspector::FrontendChannel&) final; 52 52 void dispatchMessageFromRemote(const String& message) final; 53 53 void setIndicating(bool) final; -
trunk/Source/WebKit/UIProcess/WebPageInspectorController.cpp
r238192 r238206 63 63 } 64 64 65 void WebPageInspectorController::connectFrontend(Inspector::FrontendChannel *frontendChannel, bool, bool)65 void WebPageInspectorController::connectFrontend(Inspector::FrontendChannel& frontendChannel, bool, bool) 66 66 { 67 ASSERT_ARG(frontendChannel, frontendChannel);68 69 67 bool connectingFirstFrontend = !m_frontendRouter->hasFrontends(); 70 68 … … 82 80 } 83 81 84 void WebPageInspectorController::disconnectFrontend(FrontendChannel *frontendChannel)82 void WebPageInspectorController::disconnectFrontend(FrontendChannel& frontendChannel) 85 83 { 86 84 m_frontendRouter->disconnectFrontend(frontendChannel); -
trunk/Source/WebKit/UIProcess/WebPageInspectorController.h
r238192 r238206 51 51 bool hasLocalFrontend() const; 52 52 53 void connectFrontend(Inspector::FrontendChannel *, bool isAutomaticInspection = false, bool immediatelyPause = false);54 void disconnectFrontend(Inspector::FrontendChannel *);53 void connectFrontend(Inspector::FrontendChannel&, bool isAutomaticInspection = false, bool immediatelyPause = false); 54 void disconnectFrontend(Inspector::FrontendChannel&); 55 55 void disconnectAllFrontends(); 56 56 -
trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp
r238193 r238206 146 146 return; 147 147 148 m_page->corePage()->inspectorController().disconnectFrontend( this);148 m_page->corePage()->inspectorController().disconnectFrontend(*this); 149 149 closeFrontendConnection(); 150 150 } -
trunk/Source/WebKit/WebProcess/WebPage/WebPageInspectorTarget.cpp
r238192 r238206 48 48 { 49 49 if (m_page.corePage()) 50 m_page.corePage()->inspectorController().connectFrontend( &channel);50 m_page.corePage()->inspectorController().connectFrontend(channel); 51 51 } 52 52 … … 54 54 { 55 55 if (m_page.corePage()) 56 m_page.corePage()->inspectorController().disconnectFrontend( &channel);56 m_page.corePage()->inspectorController().disconnectFrontend(channel); 57 57 } 58 58 -
trunk/Source/WebKitLegacy/mac/ChangeLog
r238192 r238206 1 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Pass Inspector::FrontendChannel as a reference connect/disconnect methods 4 https://bugs.webkit.org/show_bug.cgi?id=191612 5 6 Reviewed by Matt Baker. 7 8 * WebCoreSupport/WebInspectorClient.mm: 9 (-[WebInspectorWindowController destroyInspectorView]): 10 1 11 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 12 -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebInspectorClient.mm
r230211 r238206 656 656 frontendPage->inspectorController().setInspectorFrontendClient(nullptr); 657 657 if (Page* inspectedPage = [_inspectedWebView.get() page]) 658 inspectedPage->inspectorController().disconnectFrontend( _inspectorClient);658 inspectedPage->inspectorController().disconnectFrontend(*_inspectorClient); 659 659 660 660 [[_inspectedWebView.get() inspector] releaseFrontend]; -
trunk/Source/WebKitLegacy/win/ChangeLog
r238106 r238206 1 2018-11-14 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Pass Inspector::FrontendChannel as a reference connect/disconnect methods 4 https://bugs.webkit.org/show_bug.cgi?id=191612 5 6 Reviewed by Matt Baker. 7 8 * WebCoreSupport/WebInspectorClient.cpp: 9 (WebInspectorFrontendClient::destroyInspectorView): 10 1 11 2018-11-12 Don Olmstead <don.olmstead@sony.com> 2 12 -
trunk/Source/WebKitLegacy/win/WebCoreSupport/WebInspectorClient.cpp
r235938 r238206 423 423 frontendPage->inspectorController().setInspectorFrontendClient(nullptr); 424 424 if (Page* inspectedPage = m_inspectedWebView->page()) 425 inspectedPage->inspectorController().disconnectFrontend( m_inspectorClient);425 inspectedPage->inspectorController().disconnectFrontend(*m_inspectorClient); 426 426 427 427 m_inspectorClient->releaseFrontend();
Note:
See TracChangeset
for help on using the changeset viewer.