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

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

Issue 489763002: MacViews: Gets a webview working in views_examples_with_content_exe Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to master Created 6 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 | Annotate | Revision Log
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/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 new ShellResourceDispatcherHostDelegate()); 288 new ShellResourceDispatcherHostDelegate());
289 ResourceDispatcherHost::Get()->SetDelegate( 289 ResourceDispatcherHost::Get()->SetDelegate(
290 resource_dispatcher_host_delegate_.get()); 290 resource_dispatcher_host_delegate_.get());
291 } 291 }
292 292
293 std::string ShellContentBrowserClient::GetDefaultDownloadName() { 293 std::string ShellContentBrowserClient::GetDefaultDownloadName() {
294 return "download"; 294 return "download";
295 } 295 }
296 296
297 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( 297 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate(
298 WebContents* web_contents) { 298 WebContents* web_contents,
299 gfx::NativeView context) {
299 #if !defined(USE_AURA) 300 #if !defined(USE_AURA)
300 return CreateShellWebContentsViewDelegate(web_contents); 301 return CreateShellWebContentsViewDelegate(web_contents);
301 #else 302 #else
302 return NULL; 303 return NULL;
303 #endif 304 #endif
304 } 305 }
305 306
306 QuotaPermissionContext* 307 QuotaPermissionContext*
307 ShellContentBrowserClient::CreateQuotaPermissionContext() { 308 ShellContentBrowserClient::CreateQuotaPermissionContext() {
308 return new ShellQuotaPermissionContext(); 309 return new ShellQuotaPermissionContext();
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 ShellBrowserContext* 425 ShellBrowserContext*
425 ShellContentBrowserClient::ShellBrowserContextForBrowserContext( 426 ShellContentBrowserClient::ShellBrowserContextForBrowserContext(
426 BrowserContext* content_browser_context) { 427 BrowserContext* content_browser_context) {
427 if (content_browser_context == browser_context()) 428 if (content_browser_context == browser_context())
428 return browser_context(); 429 return browser_context();
429 DCHECK_EQ(content_browser_context, off_the_record_browser_context()); 430 DCHECK_EQ(content_browser_context, off_the_record_browser_context());
430 return off_the_record_browser_context(); 431 return off_the_record_browser_context();
431 } 432 }
432 433
433 } // namespace content 434 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | content/shell/browser/shell_web_contents_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698