OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 #include "grit/generated_resources.h" | 121 #include "grit/generated_resources.h" |
122 #include "grit/ui_resources.h" | 122 #include "grit/ui_resources.h" |
123 #include "net/base/escape.h" | 123 #include "net/base/escape.h" |
124 #include "net/base/mime_util.h" | 124 #include "net/base/mime_util.h" |
125 #include "net/cookies/canonical_cookie.h" | 125 #include "net/cookies/canonical_cookie.h" |
126 #include "net/cookies/cookie_options.h" | 126 #include "net/cookies/cookie_options.h" |
127 #include "net/ssl/ssl_cert_request_info.h" | 127 #include "net/ssl/ssl_cert_request_info.h" |
128 #include "ppapi/host/ppapi_host.h" | 128 #include "ppapi/host/ppapi_host.h" |
129 #include "ui/base/l10n/l10n_util.h" | 129 #include "ui/base/l10n/l10n_util.h" |
130 #include "ui/base/resource/resource_bundle.h" | 130 #include "ui/base/resource/resource_bundle.h" |
131 #include "ui/message_center/message_center_util.h" | |
132 #include "webkit/glue/webpreferences.h" | 131 #include "webkit/glue/webpreferences.h" |
133 #include "webkit/plugins/plugin_switches.h" | 132 #include "webkit/plugins/plugin_switches.h" |
134 | 133 |
135 #if defined(OS_WIN) | 134 #if defined(OS_WIN) |
136 #include "chrome/browser/chrome_browser_main_win.h" | 135 #include "chrome/browser/chrome_browser_main_win.h" |
137 #include "sandbox/win/src/sandbox_policy.h" | 136 #include "sandbox/win/src/sandbox_policy.h" |
138 #elif defined(OS_MACOSX) | 137 #elif defined(OS_MACOSX) |
139 #include "chrome/browser/chrome_browser_main_mac.h" | 138 #include "chrome/browser/chrome_browser_main_mac.h" |
140 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" | 139 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" |
141 #elif defined(OS_CHROMEOS) | 140 #elif defined(OS_CHROMEOS) |
(...skipping 14 matching lines...) Expand all Loading... |
156 | 155 |
157 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID) | 156 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID) |
158 #include "base/linux_util.h" | 157 #include "base/linux_util.h" |
159 #include "chrome/browser/crash_handler_host_linux.h" | 158 #include "chrome/browser/crash_handler_host_linux.h" |
160 #endif | 159 #endif |
161 | 160 |
162 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 161 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
163 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" | 162 #include "chrome/browser/captive_portal/captive_portal_tab_helper.h" |
164 #endif | 163 #endif |
165 | 164 |
| 165 #if defined(ENABLE_MESSAGE_CENTER) |
| 166 #include "ui/message_center/message_center_util.h" |
| 167 #endif |
| 168 |
166 #if defined(OS_ANDROID) | 169 #if defined(OS_ANDROID) |
167 #include "ui/base/ui_base_paths.h" | 170 #include "ui/base/ui_base_paths.h" |
168 #endif | 171 #endif |
169 | 172 |
170 #if defined(USE_NSS) | 173 #if defined(USE_NSS) |
171 #include "chrome/browser/ui/crypto_module_password_dialog.h" | 174 #include "chrome/browser/ui/crypto_module_password_dialog.h" |
172 #endif | 175 #endif |
173 | 176 |
174 #if !defined(OS_CHROMEOS) | 177 #if !defined(OS_CHROMEOS) |
175 #include "chrome/browser/signin/signin_manager.h" | 178 #include "chrome/browser/signin/signin_manager.h" |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 SigninManager* signin_manager = | 1220 SigninManager* signin_manager = |
1218 SigninManagerFactory::GetForProfile(profile); | 1221 SigninManagerFactory::GetForProfile(profile); |
1219 if (signin_manager && signin_manager->IsSigninProcess(process->GetID())) | 1222 if (signin_manager && signin_manager->IsSigninProcess(process->GetID())) |
1220 command_line->AppendSwitch(switches::kSigninProcess); | 1223 command_line->AppendSwitch(switches::kSigninProcess); |
1221 #endif | 1224 #endif |
1222 } | 1225 } |
1223 | 1226 |
1224 if (content::IsThreadedCompositingEnabled()) | 1227 if (content::IsThreadedCompositingEnabled()) |
1225 command_line->AppendSwitch(switches::kEnableThreadedCompositing); | 1228 command_line->AppendSwitch(switches::kEnableThreadedCompositing); |
1226 | 1229 |
| 1230 #if defined(ENABLE_MESSAGE_CENTER) |
1227 if (message_center::IsRichNotificationEnabled()) | 1231 if (message_center::IsRichNotificationEnabled()) |
1228 command_line->AppendSwitch(switches::kDisableHTMLNotifications); | 1232 command_line->AppendSwitch(switches::kDisableHTMLNotifications); |
| 1233 #endif |
1229 | 1234 |
1230 // Please keep this in alphabetical order. | 1235 // Please keep this in alphabetical order. |
1231 static const char* const kSwitchNames[] = { | 1236 static const char* const kSwitchNames[] = { |
1232 autofill::switches::kEnableExperimentalFormFilling, | 1237 autofill::switches::kEnableExperimentalFormFilling, |
1233 switches::kAllowHTTPBackgroundPage, | 1238 switches::kAllowHTTPBackgroundPage, |
1234 switches::kAllowLegacyExtensionManifests, | 1239 switches::kAllowLegacyExtensionManifests, |
1235 switches::kAllowScriptingGallery, | 1240 switches::kAllowScriptingGallery, |
1236 switches::kAppsCheckoutURL, | 1241 switches::kAppsCheckoutURL, |
1237 switches::kAppsGalleryURL, | 1242 switches::kAppsGalleryURL, |
1238 switches::kCloudPrintServiceURL, | 1243 switches::kCloudPrintServiceURL, |
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2287 #if defined(USE_NSS) | 2292 #if defined(USE_NSS) |
2288 crypto::CryptoModuleBlockingPasswordDelegate* | 2293 crypto::CryptoModuleBlockingPasswordDelegate* |
2289 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2294 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
2290 const GURL& url) { | 2295 const GURL& url) { |
2291 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2296 return chrome::NewCryptoModuleBlockingDialogDelegate( |
2292 chrome::kCryptoModulePasswordKeygen, url.host()); | 2297 chrome::kCryptoModulePasswordKeygen, url.host()); |
2293 } | 2298 } |
2294 #endif | 2299 #endif |
2295 | 2300 |
2296 } // namespace chrome | 2301 } // namespace chrome |
OLD | NEW |