| 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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() { | 883 AccessTokenStore* ChromeContentBrowserClient::CreateAccessTokenStore() { |
| 884 return new ChromeAccessTokenStore(); | 884 return new ChromeAccessTokenStore(); |
| 885 } | 885 } |
| 886 | 886 |
| 887 bool ChromeContentBrowserClient::IsFastShutdownPossible() { | 887 bool ChromeContentBrowserClient::IsFastShutdownPossible() { |
| 888 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); | 888 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); |
| 889 return !browser_command_line.HasSwitch(switches::kChromeFrame); | 889 return !browser_command_line.HasSwitch(switches::kChromeFrame); |
| 890 } | 890 } |
| 891 | 891 |
| 892 WebPreferences ChromeContentBrowserClient::GetWebkitPrefs( | 892 WebPreferences ChromeContentBrowserClient::GetWebkitPrefs( |
| 893 content::BrowserContext* browser_context, bool is_web_ui) { | 893 RenderViewHost* rvh, bool is_web_ui) { |
| 894 return RenderViewHostDelegateHelper::GetWebkitPrefs(browser_context, | 894 return RenderViewHostDelegateHelper::GetWebkitPrefs(rvh, is_web_ui); |
| 895 is_web_ui); | |
| 896 } | 895 } |
| 897 | 896 |
| 898 void ChromeContentBrowserClient::UpdateInspectorSetting( | 897 void ChromeContentBrowserClient::UpdateInspectorSetting( |
| 899 RenderViewHost* rvh, const std::string& key, const std::string& value) { | 898 RenderViewHost* rvh, const std::string& key, const std::string& value) { |
| 900 RenderViewHostDelegateHelper::UpdateInspectorSetting( | 899 RenderViewHostDelegateHelper::UpdateInspectorSetting( |
| 901 rvh->process()->browser_context(), key, value); | 900 rvh->process()->browser_context(), key, value); |
| 902 } | 901 } |
| 903 | 902 |
| 904 void ChromeContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { | 903 void ChromeContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { |
| 905 RenderViewHostDelegateHelper::ClearInspectorSettings( | 904 RenderViewHostDelegateHelper::ClearInspectorSettings( |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 #if defined(USE_NSS) | 987 #if defined(USE_NSS) |
| 989 crypto::CryptoModuleBlockingPasswordDelegate* | 988 crypto::CryptoModuleBlockingPasswordDelegate* |
| 990 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 989 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 991 const GURL& url) { | 990 const GURL& url) { |
| 992 return browser::NewCryptoModuleBlockingDialogDelegate( | 991 return browser::NewCryptoModuleBlockingDialogDelegate( |
| 993 browser::kCryptoModulePasswordKeygen, url.host()); | 992 browser::kCryptoModulePasswordKeygen, url.host()); |
| 994 } | 993 } |
| 995 #endif | 994 #endif |
| 996 | 995 |
| 997 } // namespace chrome | 996 } // namespace chrome |
| OLD | NEW |