| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 #include "chrome/browser/ssl/ssl_blocking_page.h" | 71 #include "chrome/browser/ssl/ssl_blocking_page.h" |
| 72 #include "chrome/browser/ssl/ssl_tab_helper.h" | 72 #include "chrome/browser/ssl/ssl_tab_helper.h" |
| 73 #include "chrome/browser/tab_contents/tab_util.h" | 73 #include "chrome/browser/tab_contents/tab_util.h" |
| 74 #include "chrome/browser/toolkit_extra_parts.h" | 74 #include "chrome/browser/toolkit_extra_parts.h" |
| 75 #include "chrome/browser/ui/chrome_select_file_policy.h" | 75 #include "chrome/browser/ui/chrome_select_file_policy.h" |
| 76 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" | 76 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" |
| 77 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 77 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
| 78 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 78 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
| 79 #include "chrome/browser/user_style_sheet_watcher.h" | 79 #include "chrome/browser/user_style_sheet_watcher.h" |
| 80 #include "chrome/browser/user_style_sheet_watcher_factory.h" | 80 #include "chrome/browser/user_style_sheet_watcher_factory.h" |
| 81 #include "chrome/browser/validation_message_message_filter.h" |
| 81 #include "chrome/common/child_process_logging.h" | 82 #include "chrome/common/child_process_logging.h" |
| 82 #include "chrome/common/chrome_constants.h" | 83 #include "chrome/common/chrome_constants.h" |
| 83 #include "chrome/common/chrome_paths.h" | 84 #include "chrome/common/chrome_paths.h" |
| 84 #include "chrome/common/chrome_process_type.h" | 85 #include "chrome/common/chrome_process_type.h" |
| 85 #include "chrome/common/chrome_switches.h" | 86 #include "chrome/common/chrome_switches.h" |
| 86 #include "chrome/common/extensions/background_info.h" | 87 #include "chrome/common/extensions/background_info.h" |
| 87 #include "chrome/common/extensions/extension.h" | 88 #include "chrome/common/extensions/extension.h" |
| 88 #include "chrome/common/extensions/extension_process_policy.h" | 89 #include "chrome/common/extensions/extension_process_policy.h" |
| 89 #include "chrome/common/extensions/extension_set.h" | 90 #include "chrome/common/extensions/extension_set.h" |
| 90 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | 91 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" |
| (...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 host->GetChannel()->AddFilter( | 716 host->GetChannel()->AddFilter( |
| 716 new SearchProviderInstallStateMessageFilter(id, profile)); | 717 new SearchProviderInstallStateMessageFilter(id, profile)); |
| 717 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 718 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
| 718 #if defined(OS_MACOSX) | 719 #if defined(OS_MACOSX) |
| 719 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); | 720 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); |
| 720 #endif | 721 #endif |
| 721 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( | 722 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( |
| 722 id, profile, context)); | 723 id, profile, context)); |
| 723 host->GetChannel()->AddFilter( | 724 host->GetChannel()->AddFilter( |
| 724 new prerender::PrerenderMessageFilter(id, profile)); | 725 new prerender::PrerenderMessageFilter(id, profile)); |
| 726 #if defined(OS_MACOSX) |
| 727 // TODO(tkent): Enable it for other platforms. |
| 728 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id)); |
| 729 #endif |
| 725 | 730 |
| 726 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 731 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
| 727 profile->IsOffTheRecord())); | 732 profile->IsOffTheRecord())); |
| 728 | 733 |
| 729 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled( | 734 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled( |
| 730 IsExtensionActivityLogEnabledForProfile(profile))); | 735 IsExtensionActivityLogEnabledForProfile(profile))); |
| 731 | 736 |
| 732 SendExtensionWebRequestStatusToHost(host); | 737 SendExtensionWebRequestStatusToHost(host); |
| 733 | 738 |
| 734 RendererContentSettingRules rules; | 739 RendererContentSettingRules rules; |
| (...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2209 #if defined(USE_NSS) | 2214 #if defined(USE_NSS) |
| 2210 crypto::CryptoModuleBlockingPasswordDelegate* | 2215 crypto::CryptoModuleBlockingPasswordDelegate* |
| 2211 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2216 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 2212 const GURL& url) { | 2217 const GURL& url) { |
| 2213 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2218 return chrome::NewCryptoModuleBlockingDialogDelegate( |
| 2214 chrome::kCryptoModulePasswordKeygen, url.host()); | 2219 chrome::kCryptoModulePasswordKeygen, url.host()); |
| 2215 } | 2220 } |
| 2216 #endif | 2221 #endif |
| 2217 | 2222 |
| 2218 } // namespace chrome | 2223 } // namespace chrome |
| OLD | NEW |