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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 | 882 |
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(RenderViewHost* rvh) { |
893 content::BrowserContext* browser_context, bool is_web_ui) { | 893 return RenderViewHostDelegateHelper::GetWebkitPrefs(rvh); |
894 return RenderViewHostDelegateHelper::GetWebkitPrefs(browser_context, | |
895 is_web_ui); | |
896 } | 894 } |
897 | 895 |
898 void ChromeContentBrowserClient::UpdateInspectorSetting( | 896 void ChromeContentBrowserClient::UpdateInspectorSetting( |
899 RenderViewHost* rvh, const std::string& key, const std::string& value) { | 897 RenderViewHost* rvh, const std::string& key, const std::string& value) { |
900 RenderViewHostDelegateHelper::UpdateInspectorSetting( | 898 RenderViewHostDelegateHelper::UpdateInspectorSetting( |
901 rvh->process()->browser_context(), key, value); | 899 rvh->process()->browser_context(), key, value); |
902 } | 900 } |
903 | 901 |
904 void ChromeContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { | 902 void ChromeContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) { |
905 RenderViewHostDelegateHelper::ClearInspectorSettings( | 903 RenderViewHostDelegateHelper::ClearInspectorSettings( |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 #if defined(USE_NSS) | 986 #if defined(USE_NSS) |
989 crypto::CryptoModuleBlockingPasswordDelegate* | 987 crypto::CryptoModuleBlockingPasswordDelegate* |
990 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 988 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
991 const GURL& url) { | 989 const GURL& url) { |
992 return browser::NewCryptoModuleBlockingDialogDelegate( | 990 return browser::NewCryptoModuleBlockingDialogDelegate( |
993 browser::kCryptoModulePasswordKeygen, url.host()); | 991 browser::kCryptoModulePasswordKeygen, url.host()); |
994 } | 992 } |
995 #endif | 993 #endif |
996 | 994 |
997 } // namespace chrome | 995 } // namespace chrome |
OLD | NEW |