OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shell/browser/shell_devtools_manager_delegate.h" | 5 #include "content/shell/browser/shell_devtools_manager_delegate.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 } | 222 } |
223 | 223 |
224 ShellDevToolsManagerDelegate::ShellDevToolsManagerDelegate() { | 224 ShellDevToolsManagerDelegate::ShellDevToolsManagerDelegate() { |
225 } | 225 } |
226 | 226 |
227 ShellDevToolsManagerDelegate::~ShellDevToolsManagerDelegate() { | 227 ShellDevToolsManagerDelegate::~ShellDevToolsManagerDelegate() { |
228 } | 228 } |
229 | 229 |
230 base::DictionaryValue* ShellDevToolsManagerDelegate::HandleCommand( | 230 base::DictionaryValue* ShellDevToolsManagerDelegate::HandleCommand( |
231 DevToolsAgentHost* agent_host, | 231 DevToolsAgentHost* agent_host, |
232 base::DictionaryValue* command) { | 232 base::DictionaryValue* command_dict) { |
233 return NULL; | 233 std::unique_ptr<base::DictionaryValue> result = |
| 234 devtools_discovery::DevToolsDiscoveryManager::GetInstance() |
| 235 ->HandleNewTargetCommand(command_dict); |
| 236 return result.release(); // Caller takes ownership. |
234 } | 237 } |
235 | 238 |
236 } // namespace content | 239 } // namespace content |
OLD | NEW |