| 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 "chrome/browser/devtools/chrome_devtools_manager_delegate.h" | 5 #include "chrome/browser/devtools/chrome_devtools_manager_delegate.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" |
| 7 #include "chrome/browser/devtools/devtools_network_protocol_handler.h" | 8 #include "chrome/browser/devtools/devtools_network_protocol_handler.h" |
| 8 | 9 |
| 9 #if !defined(OS_ANDROID) | 10 #if !defined(OS_ANDROID) |
| 10 #include "chrome/browser/devtools/devtools_window.h" | 11 #include "chrome/browser/devtools/devtools_window.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 12 #include "content/public/browser/devtools_agent_host.h" | 13 #include "content/public/browser/devtools_agent_host.h" |
| 13 #endif // !defined(OS_ANDROID) | 14 #endif // !defined(OS_ANDROID) |
| 14 | 15 |
| 15 ChromeDevToolsManagerDelegate::ChromeDevToolsManagerDelegate() | 16 ChromeDevToolsManagerDelegate::ChromeDevToolsManagerDelegate() |
| 16 : network_protocol_handler_(new DevToolsNetworkProtocolHandler()) { | 17 : network_protocol_handler_(new DevToolsNetworkProtocolHandler()) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 content::DevToolsAgentHost* agent_host, | 39 content::DevToolsAgentHost* agent_host, |
| 39 base::DictionaryValue* command_dict) { | 40 base::DictionaryValue* command_dict) { |
| 40 return network_protocol_handler_->HandleCommand(agent_host, command_dict); | 41 return network_protocol_handler_->HandleCommand(agent_host, command_dict); |
| 41 } | 42 } |
| 42 | 43 |
| 43 void ChromeDevToolsManagerDelegate::DevToolsAgentStateChanged( | 44 void ChromeDevToolsManagerDelegate::DevToolsAgentStateChanged( |
| 44 content::DevToolsAgentHost* agent_host, | 45 content::DevToolsAgentHost* agent_host, |
| 45 bool attached) { | 46 bool attached) { |
| 46 network_protocol_handler_->DevToolsAgentStateChanged(agent_host, attached); | 47 network_protocol_handler_->DevToolsAgentStateChanged(agent_host, attached); |
| 47 } | 48 } |
| OLD | NEW |