Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/shell/browser/shell_devtools_manager_delegate.cc

Issue 790423002: Add the main frame routing ID to WebContentsDelegate, use it in BackgroundContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content shell Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/shell/browser/shell_devtools_frontend.cc ('k') | content/shell/browser/shell_web_contents_view_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698