blob: 2b6ccce3050dcca8df5955fe9bbdc71d333b7d5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// 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 "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/devtools/devtools_agent_host_impl.h"
#include "content/public/browser/devtools_external_agent_proxy.h"
#include "content/public/browser/devtools_external_agent_proxy_delegate.h"
namespace content {
class ForwardingAgentHost
: public DevToolsAgentHostImpl,
public DevToolsExternalAgentProxy {
public:
ForwardingAgentHost(DevToolsExternalAgentProxyDelegate* delegate);
private:
~ForwardingAgentHost() override;
// DevToolsExternalAgentProxy implementation.
void DispatchOnClientHost(const std::string& message) override;
void ConnectionClosed() override;
// DevToolsAgentHostImpl implementation.
void Attach() override;
void Detach() override;
bool DispatchProtocolMessage(const std::string& message) override;
// DevToolsAgentHost implementation
Type GetType() override;
std::string GetTitle() override;
GURL GetURL() override;
bool Activate() override;
bool Close() override;
scoped_ptr<DevToolsExternalAgentProxyDelegate> delegate_;
};
} // namespace content
#endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_
|