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

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

Issue 659233002: STASH: Epic Experimental patch for toolkit-views App List on Mac Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Fix a few things. Works@master Created 6 years, 2 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
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 "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 : new ShellResourceDispatcherHostDelegate); 294 : new ShellResourceDispatcherHostDelegate);
295 ResourceDispatcherHost::Get()->SetDelegate( 295 ResourceDispatcherHost::Get()->SetDelegate(
296 resource_dispatcher_host_delegate_.get()); 296 resource_dispatcher_host_delegate_.get());
297 } 297 }
298 298
299 std::string ShellContentBrowserClient::GetDefaultDownloadName() { 299 std::string ShellContentBrowserClient::GetDefaultDownloadName() {
300 return "download"; 300 return "download";
301 } 301 }
302 302
303 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( 303 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
304 WebContents* web_contents) { 304 WebContents* web_contents,
305 gfx::NativeView context) {
305 #if !defined(USE_AURA) 306 #if !defined(USE_AURA)
306 return CreateShellWebContentsViewDelegate(web_contents); 307 return CreateShellWebContentsViewDelegate(web_contents);
307 #else 308 #else
308 return NULL; 309 return NULL;
309 #endif 310 #endif
310 } 311 }
311 312
312 QuotaPermissionContext* 313 QuotaPermissionContext*
313 ShellContentBrowserClient::CreateQuotaPermissionContext() { 314 ShellContentBrowserClient::CreateQuotaPermissionContext() {
314 return new ShellQuotaPermissionContext(); 315 return new ShellQuotaPermissionContext();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 ShellBrowserContext* 434 ShellBrowserContext*
434 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( 435 ShellContentBrowserClient::ShellBrowserContextForBrowserContext(
435 BrowserContext* content_browser_context) { 436 BrowserContext* content_browser_context) {
436 if (content_browser_context == browser_context()) 437 if (content_browser_context == browser_context())
437 return browser_context(); 438 return browser_context();
438 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); 439 DCHECK_EQ(content_browser_context, off_the_record_browser_context());
439 return off_the_record_browser_context(); 440 return off_the_record_browser_context();
440 } 441 }
441 442
442 } // namespace content 443 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | extensions/browser/api/cast_channel/cast_auth_util_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698