| 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 host->GetChannel()->AddFilter( | 720 host->GetChannel()->AddFilter( |
| 720 new SearchProviderInstallStateMessageFilter(id, profile)); | 721 new SearchProviderInstallStateMessageFilter(id, profile)); |
| 721 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 722 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
| 722 #if defined(OS_MACOSX) | 723 #if defined(OS_MACOSX) |
| 723 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); | 724 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); |
| 724 #endif | 725 #endif |
| 725 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( | 726 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( |
| 726 id, profile, context)); | 727 id, profile, context)); |
| 727 host->GetChannel()->AddFilter( | 728 host->GetChannel()->AddFilter( |
| 728 new prerender::PrerenderMessageFilter(id, profile)); | 729 new prerender::PrerenderMessageFilter(id, profile)); |
| 730 #if defined(OS_MACOSX) |
| 731 // TODO(tkent): Enable it for other platforms. |
| 732 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id)); |
| 733 #endif |
| 729 | 734 |
| 730 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 735 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
| 731 profile->IsOffTheRecord())); | 736 profile->IsOffTheRecord())); |
| 732 | 737 |
| 733 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled( | 738 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled( |
| 734 IsExtensionActivityLogEnabledForProfile(profile))); | 739 IsExtensionActivityLogEnabledForProfile(profile))); |
| 735 | 740 |
| 736 SendExtensionWebRequestStatusToHost(host); | 741 SendExtensionWebRequestStatusToHost(host); |
| 737 | 742 |
| 738 RendererContentSettingRules rules; | 743 RendererContentSettingRules rules; |
| (...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2222 #if defined(USE_NSS) | 2227 #if defined(USE_NSS) |
| 2223 crypto::CryptoModuleBlockingPasswordDelegate* | 2228 crypto::CryptoModuleBlockingPasswordDelegate* |
| 2224 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2229 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 2225 const GURL& url) { | 2230 const GURL& url) { |
| 2226 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2231 return chrome::NewCryptoModuleBlockingDialogDelegate( |
| 2227 chrome::kCryptoModulePasswordKeygen, url.host()); | 2232 chrome::kCryptoModulePasswordKeygen, url.host()); |
| 2228 } | 2233 } |
| 2229 #endif | 2234 #endif |
| 2230 | 2235 |
| 2231 } // namespace chrome | 2236 } // namespace chrome |
| OLD | NEW |