OLD | NEW |
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> |
| 9 |
8 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "content/browser/devtools/devtools_agent_host_impl.h" | 11 #include "content/browser/devtools/devtools_agent_host_impl.h" |
11 #include "content/public/browser/devtools_external_agent_proxy.h" | 12 #include "content/public/browser/devtools_external_agent_proxy.h" |
12 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" | 13 #include "content/public/browser/devtools_external_agent_proxy_delegate.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 class ForwardingAgentHost | 17 class ForwardingAgentHost |
17 : public DevToolsAgentHostImpl, | 18 : public DevToolsAgentHostImpl, |
18 public DevToolsExternalAgentProxy { | 19 public DevToolsExternalAgentProxy { |
19 public: | 20 public: |
(...skipping 11 matching lines...) Expand all Loading... |
31 void Detach() override; | 32 void Detach() override; |
32 bool DispatchProtocolMessage(const std::string& message) override; | 33 bool DispatchProtocolMessage(const std::string& message) override; |
33 | 34 |
34 // DevToolsAgentHost implementation | 35 // DevToolsAgentHost implementation |
35 Type GetType() override; | 36 Type GetType() override; |
36 std::string GetTitle() override; | 37 std::string GetTitle() override; |
37 GURL GetURL() override; | 38 GURL GetURL() override; |
38 bool Activate() override; | 39 bool Activate() override; |
39 bool Close() override; | 40 bool Close() override; |
40 | 41 |
41 scoped_ptr<DevToolsExternalAgentProxyDelegate> delegate_; | 42 std::unique_ptr<DevToolsExternalAgentProxyDelegate> delegate_; |
42 }; | 43 }; |
43 | 44 |
44 } // namespace content | 45 } // namespace content |
45 | 46 |
46 #endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ | 47 #endif // CONTENT_BROWSER_DEVTOOLS_FORWARDING_AGENT_HOST_H_ |
OLD | NEW |