| // Copyright 2014 The Chromium Authors | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #ifndef CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ | |
| #define CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ | |
| #include <memory> | |
| #include "content/browser/devtools/devtools_agent_host_impl.h" | |
| namespace content { | |
| class DevToolsExternalAgentProxyDelegate; | |
| class ForwardingAgentHost : public DevToolsAgentHostImpl { | |
| public: | |
| ForwardingAgentHost( | |
| const std::string& id, | |
| std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate); | |
| ForwardingAgentHost(const ForwardingAgentHost&) = delete; | |
| ForwardingAgentHost& operator=(const ForwardingAgentHost&) = delete; | |
| private: | |
| ~ForwardingAgentHost() override; | |
| // DevToolsAgentHostImpl overrides. | |
| bool AttachSession(DevToolsSession* session) override; | |
| void DetachSession(DevToolsSession* session) override; | |
| // DevToolsAgentHost implementation. | |
| std::string GetType() override; | |
| std::string GetTitle() override; | |
| GURL GetURL() override; | |
| GURL GetFaviconURL() override; | |
| std::string GetFrontendURL() override; | |
| bool Activate() override; | |
| void Reload() override; | |
| bool Close() override; | |
| base::TimeTicks GetLastActivityTime() override; | |
| std::string GetDescription() override; | |
| std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate_; | |
| }; | |
| } // namespace content | |
| #endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ |