blob: 21da81f922f642d69710082ae0444b4f063493ee [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// 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);
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::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(ForwardingAgentHost);
};
} // namespace content
#endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_