| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "chrome/browser/profiles/profile_io_data.h" | 69 #include "chrome/browser/profiles/profile_io_data.h" |
| 70 #include "chrome/browser/profiles/profile_manager.h" | 70 #include "chrome/browser/profiles/profile_manager.h" |
| 71 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 71 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 72 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory
.h" | 72 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory
.h" |
| 73 #include "chrome/browser/search/instant_service.h" | 73 #include "chrome/browser/search/instant_service.h" |
| 74 #include "chrome/browser/search/instant_service_factory.h" | 74 #include "chrome/browser/search/instant_service_factory.h" |
| 75 #include "chrome/browser/search/search.h" | 75 #include "chrome/browser/search/search.h" |
| 76 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" | 76 #include "chrome/browser/search_engines/search_provider_install_state_message_fi
lter.h" |
| 77 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" | 77 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" |
| 78 #include "chrome/browser/speech/tts_message_filter.h" | 78 #include "chrome/browser/speech/tts_message_filter.h" |
| 79 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | |
| 80 #include "chrome/browser/ssl/ssl_add_certificate.h" | 79 #include "chrome/browser/ssl/ssl_add_certificate.h" |
| 81 #include "chrome/browser/ssl/ssl_blocking_page.h" | 80 #include "chrome/browser/ssl/ssl_blocking_page.h" |
| 82 #include "chrome/browser/ssl/ssl_tab_helper.h" | 81 #include "chrome/browser/ssl/ssl_tab_helper.h" |
| 83 #include "chrome/browser/tab_contents/tab_util.h" | 82 #include "chrome/browser/tab_contents/tab_util.h" |
| 84 #include "chrome/browser/ui/chrome_select_file_policy.h" | 83 #include "chrome/browser/ui/chrome_select_file_policy.h" |
| 85 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 84 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| 86 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" | 85 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" |
| 87 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" | 86 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
| 88 #include "chrome/browser/user_style_sheet_watcher.h" | 87 #include "chrome/browser/user_style_sheet_watcher.h" |
| 89 #include "chrome/browser/user_style_sheet_watcher_factory.h" | 88 #include "chrome/browser/user_style_sheet_watcher_factory.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 #endif | 220 #endif |
| 222 | 221 |
| 223 #if defined(USE_AURA) | 222 #if defined(USE_AURA) |
| 224 #include "chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h" | 223 #include "chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.h" |
| 225 #endif | 224 #endif |
| 226 | 225 |
| 227 #if defined(USE_X11) | 226 #if defined(USE_X11) |
| 228 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" | 227 #include "chrome/browser/chrome_browser_main_extra_parts_x11.h" |
| 229 #endif | 228 #endif |
| 230 | 229 |
| 230 #if defined(ENABLE_SPELLCHECK) |
| 231 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
| 232 #endif |
| 233 |
| 231 using WebKit::WebWindowFeatures; | 234 using WebKit::WebWindowFeatures; |
| 232 using base::FileDescriptor; | 235 using base::FileDescriptor; |
| 233 using content::AccessTokenStore; | 236 using content::AccessTokenStore; |
| 234 using content::BrowserChildProcessHostIterator; | 237 using content::BrowserChildProcessHostIterator; |
| 235 using content::BrowserThread; | 238 using content::BrowserThread; |
| 236 using content::BrowserURLHandler; | 239 using content::BrowserURLHandler; |
| 237 using content::ChildProcessSecurityPolicy; | 240 using content::ChildProcessSecurityPolicy; |
| 238 using content::FileDescriptorInfo; | 241 using content::FileDescriptorInfo; |
| 239 using content::QuotaPermissionContext; | 242 using content::QuotaPermissionContext; |
| 240 using content::RenderViewHost; | 243 using content::RenderViewHost; |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( | 883 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( |
| 881 id, profile, context)); | 884 id, profile, context)); |
| 882 #if defined(ENABLE_PLUGINS) | 885 #if defined(ENABLE_PLUGINS) |
| 883 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); | 886 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); |
| 884 #endif | 887 #endif |
| 885 #if defined(ENABLE_PRINTING) | 888 #if defined(ENABLE_PRINTING) |
| 886 host->GetChannel()->AddFilter(new PrintingMessageFilter(id, profile)); | 889 host->GetChannel()->AddFilter(new PrintingMessageFilter(id, profile)); |
| 887 #endif | 890 #endif |
| 888 host->GetChannel()->AddFilter( | 891 host->GetChannel()->AddFilter( |
| 889 new SearchProviderInstallStateMessageFilter(id, profile)); | 892 new SearchProviderInstallStateMessageFilter(id, profile)); |
| 893 #if defined(ENABLE_SPELLCHECK) |
| 890 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 894 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
| 895 #endif |
| 891 #if defined(OS_MACOSX) | 896 #if defined(OS_MACOSX) |
| 892 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); | 897 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); |
| 893 #endif | 898 #endif |
| 894 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( | 899 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( |
| 895 id, profile, context)); | 900 id, profile, context)); |
| 896 host->GetChannel()->AddFilter( | 901 host->GetChannel()->AddFilter( |
| 897 new prerender::PrerenderMessageFilter(id, profile)); | 902 new prerender::PrerenderMessageFilter(id, profile)); |
| 898 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id)); | 903 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id)); |
| 899 host->GetChannel()->AddFilter(new TtsMessageFilter(id, profile)); | 904 host->GetChannel()->AddFilter(new TtsMessageFilter(id, profile)); |
| 900 #if defined(ENABLE_WEBRTC) | 905 #if defined(ENABLE_WEBRTC) |
| (...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2579 #if defined(USE_NSS) | 2584 #if defined(USE_NSS) |
| 2580 crypto::CryptoModuleBlockingPasswordDelegate* | 2585 crypto::CryptoModuleBlockingPasswordDelegate* |
| 2581 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2586 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 2582 const GURL& url) { | 2587 const GURL& url) { |
| 2583 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2588 return chrome::NewCryptoModuleBlockingDialogDelegate( |
| 2584 chrome::kCryptoModulePasswordKeygen, url.host()); | 2589 chrome::kCryptoModulePasswordKeygen, url.host()); |
| 2585 } | 2590 } |
| 2586 #endif | 2591 #endif |
| 2587 | 2592 |
| 2588 } // namespace chrome | 2593 } // namespace chrome |
| OLD | NEW |