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

Side by Side Diff: content/browser/devtools/forwarding_agent_host.h

Issue 2874613003: [DevTools] Support multiple clients in DevToolsAgentHost (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 17 matching lines...) Expand all
28 // DevToolsExternalAgentProxy implementation. 28 // DevToolsExternalAgentProxy implementation.
29 void DispatchOnClientHost(const std::string& message) override; 29 void DispatchOnClientHost(const std::string& message) override;
30 void ConnectionClosed() override; 30 void ConnectionClosed() override;
31 31
32 // DevToolsAgentHostImpl implementation. 32 // DevToolsAgentHostImpl implementation.
33 void AttachSession(DevToolsSession* session) override; 33 void AttachSession(DevToolsSession* session) override;
34 void DetachSession(int session_id) override; 34 void DetachSession(int session_id) override;
35 bool DispatchProtocolMessage( 35 bool DispatchProtocolMessage(
36 DevToolsSession* session, 36 DevToolsSession* session,
37 const std::string& message) override; 37 const std::string& message) override;
38 bool AttachMultiClient(DevToolsAgentHostClient* client) override;
38 39
39 // DevToolsAgentHost implementation 40 // DevToolsAgentHost implementation
40 std::string GetType() override; 41 std::string GetType() override;
41 std::string GetTitle() override; 42 std::string GetTitle() override;
42 GURL GetURL() override; 43 GURL GetURL() override;
43 GURL GetFaviconURL() override; 44 GURL GetFaviconURL() override;
44 std::string GetFrontendURL() override; 45 std::string GetFrontendURL() override;
45 bool Activate() override; 46 bool Activate() override;
46 void Reload() override; 47 void Reload() override;
47 bool Close() override; 48 bool Close() override;
48 base::TimeTicks GetLastActivityTime() override; 49 base::TimeTicks GetLastActivityTime() override;
49 50
50 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate_; 51 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate_;
51 std::string type_; 52 std::string type_;
52 std::string title_; 53 std::string title_;
53 GURL url_; 54 GURL url_;
54 }; 55 };
55 56
56 } // namespace content 57 } // namespace content
57 58
58 #endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ 59 #endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_session.h ('k') | content/browser/devtools/forwarding_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698