| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 std::string ShellDevToolsManagerDelegate::GetPageThumbnailData( | 256 std::string ShellDevToolsManagerDelegate::GetPageThumbnailData( |
| 257 const GURL& url) { | 257 const GURL& url) { |
| 258 return std::string(); | 258 return std::string(); |
| 259 } | 259 } |
| 260 | 260 |
| 261 scoped_ptr<DevToolsTarget> | 261 scoped_ptr<DevToolsTarget> |
| 262 ShellDevToolsManagerDelegate::CreateNewTarget(const GURL& url) { | 262 ShellDevToolsManagerDelegate::CreateNewTarget(const GURL& url) { |
| 263 Shell* shell = Shell::CreateNewWindow(browser_context_, | 263 Shell* shell = Shell::CreateNewWindow(browser_context_, |
| 264 url, | 264 url, |
| 265 NULL, | 265 NULL, |
| 266 MSG_ROUTING_NONE, | |
| 267 gfx::Size()); | 266 gfx::Size()); |
| 268 return scoped_ptr<DevToolsTarget>( | 267 return scoped_ptr<DevToolsTarget>( |
| 269 new Target(DevToolsAgentHost::GetOrCreateFor(shell->web_contents()))); | 268 new Target(DevToolsAgentHost::GetOrCreateFor(shell->web_contents()))); |
| 270 } | 269 } |
| 271 | 270 |
| 272 void ShellDevToolsManagerDelegate::EnumerateTargets(TargetCallback callback) { | 271 void ShellDevToolsManagerDelegate::EnumerateTargets(TargetCallback callback) { |
| 273 TargetList targets; | 272 TargetList targets; |
| 274 for (const auto& agent_host : DevToolsAgentHost::GetOrCreateAll()) { | 273 for (const auto& agent_host : DevToolsAgentHost::GetOrCreateAll()) { |
| 275 targets.push_back(new Target(agent_host)); | 274 targets.push_back(new Target(agent_host)); |
| 276 } | 275 } |
| 277 callback.Run(targets); | 276 callback.Run(targets); |
| 278 } | 277 } |
| 279 | 278 |
| 280 } // namespace content | 279 } // namespace content |
| OLD | NEW |