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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 7745048: Allow content to get the system request context, a request context not tied to any profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/app/breakpad_mac.h" 8 #include "chrome/app/breakpad_mac.h"
9 #include "chrome/browser/browser_about_handler.h" 9 #include "chrome/browser/browser_about_handler.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 738
739 FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() { 739 FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() {
740 return download_util::GetDefaultDownloadDirectory(); 740 return download_util::GetDefaultDownloadDirectory();
741 } 741 }
742 742
743 net::URLRequestContextGetter* 743 net::URLRequestContextGetter*
744 ChromeContentBrowserClient::GetDefaultRequestContextDeprecatedCrBug64339() { 744 ChromeContentBrowserClient::GetDefaultRequestContextDeprecatedCrBug64339() {
745 return Profile::Deprecated::GetDefaultRequestContext(); 745 return Profile::Deprecated::GetDefaultRequestContext();
746 } 746 }
747 747
748 net::URLRequestContextGetter*
749 ChromeContentBrowserClient::GetSystemRequestContext() {
750 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
751 return g_browser_process->system_request_context();
752 }
753
748 #if defined(OS_LINUX) 754 #if defined(OS_LINUX)
749 int ChromeContentBrowserClient::GetCrashSignalFD( 755 int ChromeContentBrowserClient::GetCrashSignalFD(
750 const std::string& process_type) { 756 const std::string& process_type) {
751 if (process_type == switches::kRendererProcess) 757 if (process_type == switches::kRendererProcess)
752 return RendererCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); 758 return RendererCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket();
753 759
754 if (process_type == switches::kExtensionProcess) { 760 if (process_type == switches::kExtensionProcess) {
755 ExtensionCrashHandlerHostLinux* crash_handler = 761 ExtensionCrashHandlerHostLinux* crash_handler =
756 ExtensionCrashHandlerHostLinux::GetInstance(); 762 ExtensionCrashHandlerHostLinux::GetInstance();
757 return crash_handler->GetDeathSignalSocket(); 763 return crash_handler->GetDeathSignalSocket();
(...skipping 21 matching lines...) Expand all
779 #if defined(USE_NSS) 785 #if defined(USE_NSS)
780 crypto::CryptoModuleBlockingPasswordDelegate* 786 crypto::CryptoModuleBlockingPasswordDelegate*
781 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 787 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
782 const GURL& url) { 788 const GURL& url) {
783 return browser::NewCryptoModuleBlockingDialogDelegate( 789 return browser::NewCryptoModuleBlockingDialogDelegate(
784 browser::kCryptoModulePasswordKeygen, url.host()); 790 browser::kCryptoModulePasswordKeygen, url.host());
785 } 791 }
786 #endif 792 #endif
787 793
788 } // namespace chrome 794 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698