OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |