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

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

Issue 2272213003: DevTools: remove devtools_discovery (merged into content). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 3 months 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
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/browser/shell_devtools_manager_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_content_browser_client.h" 5 #include "content/shell/browser/shell_content_browser_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base_switches.h" 10 #include "base/base_switches.h"
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 bool ShellContentBrowserClient::ShouldSwapProcessesForRedirect( 266 bool ShellContentBrowserClient::ShouldSwapProcessesForRedirect(
267 ResourceContext* resource_context, 267 ResourceContext* resource_context,
268 const GURL& current_url, 268 const GURL& current_url,
269 const GURL& new_url) { 269 const GURL& new_url) {
270 return g_swap_processes_for_redirect; 270 return g_swap_processes_for_redirect;
271 } 271 }
272 272
273 DevToolsManagerDelegate* 273 DevToolsManagerDelegate*
274 ShellContentBrowserClient::GetDevToolsManagerDelegate() { 274 ShellContentBrowserClient::GetDevToolsManagerDelegate() {
275 return new ShellDevToolsManagerDelegate(); 275 return new ShellDevToolsManagerDelegate(browser_context());
276 } 276 }
277 277
278 void ShellContentBrowserClient::OpenURL( 278 void ShellContentBrowserClient::OpenURL(
279 BrowserContext* browser_context, 279 BrowserContext* browser_context,
280 const OpenURLParams& params, 280 const OpenURLParams& params,
281 const base::Callback<void(WebContents*)>& callback) { 281 const base::Callback<void(WebContents*)>& callback) {
282 callback.Run(Shell::CreateNewWindow(browser_context, 282 callback.Run(Shell::CreateNewWindow(browser_context,
283 params.url, 283 params.url,
284 nullptr, 284 nullptr,
285 gfx::Size())->web_contents()); 285 gfx::Size())->web_contents());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 ShellBrowserContext* ShellContentBrowserClient::browser_context() { 332 ShellBrowserContext* ShellContentBrowserClient::browser_context() {
333 return shell_browser_main_parts_->browser_context(); 333 return shell_browser_main_parts_->browser_context();
334 } 334 }
335 335
336 ShellBrowserContext* 336 ShellBrowserContext*
337 ShellContentBrowserClient::off_the_record_browser_context() { 337 ShellContentBrowserClient::off_the_record_browser_context() {
338 return shell_browser_main_parts_->off_the_record_browser_context(); 338 return shell_browser_main_parts_->off_the_record_browser_context();
339 } 339 }
340 340
341 } // namespace content 341 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/DEPS ('k') | content/shell/browser/shell_devtools_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698