| 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 std::string BrowserDevToolsAgentHost::GetType() { | 58 DevToolsAgentHost::Type BrowserDevToolsAgentHost::GetType() { |
| 59 return kTypeBrowser; | 59 return TYPE_BROWSER; |
| 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 bool BrowserDevToolsAgentHost::Inspect() { | |
| 75 return false; | |
| 76 } | |
| 77 | |
| 78 bool BrowserDevToolsAgentHost::Close() { | 74 bool BrowserDevToolsAgentHost::Close() { |
| 79 return false; | 75 return false; |
| 80 } | 76 } |
| 81 | 77 |
| 82 void BrowserDevToolsAgentHost::Reload() { | |
| 83 } | |
| 84 | |
| 85 bool BrowserDevToolsAgentHost::DispatchProtocolMessage( | 78 bool BrowserDevToolsAgentHost::DispatchProtocolMessage( |
| 86 const std::string& message) { | 79 const std::string& message) { |
| 87 protocol_handler_->HandleMessage(session_id(), message); | 80 protocol_handler_->HandleMessage(session_id(), message); |
| 88 return true; | 81 return true; |
| 89 } | 82 } |
| 90 | 83 |
| 91 } // content | 84 } // content |
| OLD | NEW |