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/browser_devtools_agent_host.h" | 5 #include "content/browser/devtools/browser_devtools_agent_host.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "content/browser/devtools/devtools_protocol_handler.h" | 8 #include "content/browser/devtools/devtools_protocol_handler.h" |
9 #include "content/browser/devtools/protocol/browser_handler.h" | 9 #include "content/browser/devtools/protocol/browser_handler.h" |
10 #include "content/browser/devtools/protocol/io_handler.h" | 10 #include "content/browser/devtools/protocol/io_handler.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 BrowserDevToolsAgentHost::~BrowserDevToolsAgentHost() { | 49 BrowserDevToolsAgentHost::~BrowserDevToolsAgentHost() { |
50 } | 50 } |
51 | 51 |
52 void BrowserDevToolsAgentHost::Attach() { | 52 void BrowserDevToolsAgentHost::Attach() { |
53 } | 53 } |
54 | 54 |
55 void BrowserDevToolsAgentHost::Detach() { | 55 void BrowserDevToolsAgentHost::Detach() { |
56 } | 56 } |
57 | 57 |
58 DevToolsAgentHost::Type BrowserDevToolsAgentHost::GetType() { | 58 std::string BrowserDevToolsAgentHost::GetType() { |
59 return TYPE_BROWSER; | 59 return kTypeBrowser; |
60 } | 60 } |
61 | 61 |
62 std::string BrowserDevToolsAgentHost::GetTitle() { | 62 std::string BrowserDevToolsAgentHost::GetTitle() { |
63 return ""; | 63 return ""; |
64 } | 64 } |
65 | 65 |
66 GURL BrowserDevToolsAgentHost::GetURL() { | 66 GURL BrowserDevToolsAgentHost::GetURL() { |
67 return GURL(); | 67 return GURL(); |
68 } | 68 } |
69 | 69 |
70 bool BrowserDevToolsAgentHost::Activate() { | 70 bool BrowserDevToolsAgentHost::Activate() { |
71 return false; | 71 return false; |
72 } | 72 } |
73 | 73 |
| 74 void BrowserDevToolsAgentHost::Inspect() { |
| 75 } |
| 76 |
74 bool BrowserDevToolsAgentHost::Close() { | 77 bool BrowserDevToolsAgentHost::Close() { |
75 return false; | 78 return false; |
76 } | 79 } |
77 | 80 |
| 81 void BrowserDevToolsAgentHost::Reload() { |
| 82 } |
| 83 |
78 bool BrowserDevToolsAgentHost::DispatchProtocolMessage( | 84 bool BrowserDevToolsAgentHost::DispatchProtocolMessage( |
79 const std::string& message) { | 85 const std::string& message) { |
80 protocol_handler_->HandleMessage(session_id(), message); | 86 protocol_handler_->HandleMessage(session_id(), message); |
81 return true; | 87 return true; |
82 } | 88 } |
83 | 89 |
84 } // content | 90 } // content |
OLD | NEW |