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 std::string ForwardingAgentHost::GetType() { | 42 DevToolsAgentHost::Type ForwardingAgentHost::GetType() { |
43 return delegate_->GetType(); | 43 return TYPE_EXTERNAL; |
44 } | 44 } |
45 | 45 |
46 std::string ForwardingAgentHost::GetTitle() { | 46 std::string ForwardingAgentHost::GetTitle() { |
47 return delegate_->GetTitle(); | 47 return ""; |
48 } | 48 } |
49 | 49 |
50 GURL ForwardingAgentHost::GetURL() { | 50 GURL ForwardingAgentHost::GetURL() { |
51 return delegate_->GetURL(); | 51 return GURL(); |
52 } | |
53 | |
54 GURL ForwardingAgentHost::GetFaviconURL() { | |
55 return delegate_->GetFaviconURL(); | |
56 } | 52 } |
57 | 53 |
58 bool ForwardingAgentHost::Activate() { | 54 bool ForwardingAgentHost::Activate() { |
59 return delegate_->Activate(); | 55 return false; |
60 } | |
61 | |
62 bool ForwardingAgentHost::Inspect() { | |
63 return delegate_->Inspect(); | |
64 } | |
65 | |
66 void ForwardingAgentHost::Reload() { | |
67 delegate_->Reload(); | |
68 } | 56 } |
69 | 57 |
70 bool ForwardingAgentHost::Close() { | 58 bool ForwardingAgentHost::Close() { |
71 return delegate_->Close(); | 59 return false; |
72 } | 60 } |
73 | 61 |
74 } // content | 62 } // content |
OLD | NEW |