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

Unified Diff: components/ui_devtools/devtools_client.h

Issue 2470933002: Disable agents when client disconnects (Closed)
Patch Set: fix nit Created 4 years, 1 month 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
« no previous file with comments | « components/ui_devtools/devtools_base_agent.h ('k') | components/ui_devtools/devtools_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui_devtools/devtools_client.h
diff --git a/components/ui_devtools/devtools_client.h b/components/ui_devtools/devtools_client.h
index 8910dd5926ab1507576f85e04a7310041f47d2f2..36ad20186343ab6d8ab58ed302f29a76e2a863ce 100644
--- a/components/ui_devtools/devtools_client.h
+++ b/components/ui_devtools/devtools_client.h
@@ -29,6 +29,7 @@ class UiDevToolsClient : public protocol::FrontendChannel {
~UiDevToolsClient() override;
void AddAgent(std::unique_ptr<UiDevToolsAgent> agent);
+ void Disconnect();
void Dispatch(const std::string& data);
bool connected() const;
@@ -36,6 +37,8 @@ class UiDevToolsClient : public protocol::FrontendChannel {
const std::string& name() const;
private:
+ void DisableAllAgents();
+
// protocol::FrontendChannel
void sendProtocolResponse(int callId, const String& message) override;
void sendProtocolNotification(const String& message) override;
« no previous file with comments | « components/ui_devtools/devtools_base_agent.h ('k') | components/ui_devtools/devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698