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 #include "content/browser/devtools/forwarding_agent_host.h" | 5 #include "content/browser/devtools/forwarding_agent_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/browser/devtools/protocol/inspector_handler.h" | 8 #include "content/browser/devtools/protocol/inspector_handler.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 21 matching lines...) Expand all Loading... |
32 void ForwardingAgentHost::Detach() { | 32 void ForwardingAgentHost::Detach() { |
33 delegate_->Detach(); | 33 delegate_->Detach(); |
34 } | 34 } |
35 | 35 |
36 bool ForwardingAgentHost::DispatchProtocolMessage( | 36 bool ForwardingAgentHost::DispatchProtocolMessage( |
37 const std::string& message) { | 37 const std::string& message) { |
38 delegate_->SendMessageToBackend(message); | 38 delegate_->SendMessageToBackend(message); |
39 return true; | 39 return true; |
40 } | 40 } |
41 | 41 |
42 DevToolsAgentHost::Type ForwardingAgentHost::GetType() { | 42 std::string ForwardingAgentHost::GetType() { |
43 return TYPE_EXTERNAL; | 43 return delegate_->GetType(); |
44 } | 44 } |
45 | 45 |
46 std::string ForwardingAgentHost::GetTitle() { | 46 std::string ForwardingAgentHost::GetTitle() { |
47 return ""; | 47 return delegate_->GetTitle(); |
48 } | 48 } |
49 | 49 |
50 GURL ForwardingAgentHost::GetURL() { | 50 GURL ForwardingAgentHost::GetURL() { |
51 return GURL(); | 51 return delegate_->GetURL(); |
| 52 } |
| 53 |
| 54 GURL ForwardingAgentHost::GetFaviconURL() { |
| 55 return delegate_->GetFaviconURL(); |
52 } | 56 } |
53 | 57 |
54 bool ForwardingAgentHost::Activate() { | 58 bool ForwardingAgentHost::Activate() { |
55 return false; | 59 return delegate_->Activate(); |
| 60 } |
| 61 |
| 62 bool ForwardingAgentHost::Inspect() { |
| 63 return delegate_->Inspect(); |
| 64 } |
| 65 |
| 66 void ForwardingAgentHost::Reload() { |
| 67 delegate_->Reload(); |
56 } | 68 } |
57 | 69 |
58 bool ForwardingAgentHost::Close() { | 70 bool ForwardingAgentHost::Close() { |
59 return false; | 71 return delegate_->Close(); |
60 } | 72 } |
61 | 73 |
62 } // content | 74 } // content |
OLD | NEW |