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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 #include "chrome/browser/chromeos/login/startup_utils.h" | 156 #include "chrome/browser/chromeos/login/startup_utils.h" |
157 #include "chrome/browser/chromeos/login/user_manager.h" | 157 #include "chrome/browser/chromeos/login/user_manager.h" |
158 #include "chrome/browser/chromeos/system/input_device_settings.h" | 158 #include "chrome/browser/chromeos/system/input_device_settings.h" |
159 #include "chromeos/chromeos_switches.h" | 159 #include "chromeos/chromeos_switches.h" |
160 #elif defined(OS_LINUX) | 160 #elif defined(OS_LINUX) |
161 #include "chrome/browser/chrome_browser_main_linux.h" | 161 #include "chrome/browser/chrome_browser_main_linux.h" |
162 #elif defined(OS_ANDROID) | 162 #elif defined(OS_ANDROID) |
163 #include "chrome/browser/android/crash_dump_manager.h" | 163 #include "chrome/browser/android/crash_dump_manager.h" |
164 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 164 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
165 #include "chrome/browser/chrome_browser_main_android.h" | 165 #include "chrome/browser/chrome_browser_main_android.h" |
| 166 #include "chrome/browser/media/encrypted_media_message_filter_android.h" |
166 #include "chrome/common/descriptors_android.h" | 167 #include "chrome/common/descriptors_android.h" |
167 #elif defined(OS_POSIX) | 168 #elif defined(OS_POSIX) |
168 #include "chrome/browser/chrome_browser_main_posix.h" | 169 #include "chrome/browser/chrome_browser_main_posix.h" |
169 #endif | 170 #endif |
170 | 171 |
171 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID) | 172 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_ANDROID) |
172 #include "base/linux_util.h" | 173 #include "base/linux_util.h" |
173 #include "chrome/browser/crash_handler_host_linux.h" | 174 #include "chrome/browser/crash_handler_host_linux.h" |
174 #endif | 175 #endif |
175 | 176 |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 host->GetChannel()->AddFilter(new WebRtcLoggingHandlerHost()); | 865 host->GetChannel()->AddFilter(new WebRtcLoggingHandlerHost()); |
865 #endif | 866 #endif |
866 #if !defined(DISABLE_NACL) | 867 #if !defined(DISABLE_NACL) |
867 ExtensionInfoMap* extension_info_map = | 868 ExtensionInfoMap* extension_info_map = |
868 extensions::ExtensionSystem::Get(profile)->info_map(); | 869 extensions::ExtensionSystem::Get(profile)->info_map(); |
869 host->GetChannel()->AddFilter(new NaClHostMessageFilter( | 870 host->GetChannel()->AddFilter(new NaClHostMessageFilter( |
870 id, profile->IsOffTheRecord(), | 871 id, profile->IsOffTheRecord(), |
871 profile->GetPath(), extension_info_map, | 872 profile->GetPath(), extension_info_map, |
872 context)); | 873 context)); |
873 #endif | 874 #endif |
| 875 #if defined(OS_ANDROID) |
| 876 host->GetChannel()->AddFilter(new EncryptedMediaMessageFilterAndroid()); |
| 877 #endif |
874 | 878 |
875 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 879 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
876 profile->IsOffTheRecord())); | 880 profile->IsOffTheRecord())); |
877 | 881 |
878 SendExtensionWebRequestStatusToHost(host); | 882 SendExtensionWebRequestStatusToHost(host); |
879 | 883 |
880 RendererContentSettingRules rules; | 884 RendererContentSettingRules rules; |
881 GetRendererContentSettingRules(profile->GetHostContentSettingsMap(), &rules); | 885 GetRendererContentSettingRules(profile->GetHostContentSettingsMap(), &rules); |
882 host->Send(new ChromeViewMsg_SetContentSettingRules(rules)); | 886 host->Send(new ChromeViewMsg_SetContentSettingRules(rules)); |
883 } | 887 } |
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2536 #if defined(USE_NSS) | 2540 #if defined(USE_NSS) |
2537 crypto::CryptoModuleBlockingPasswordDelegate* | 2541 crypto::CryptoModuleBlockingPasswordDelegate* |
2538 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2542 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
2539 const GURL& url) { | 2543 const GURL& url) { |
2540 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2544 return chrome::NewCryptoModuleBlockingDialogDelegate( |
2541 chrome::kCryptoModulePasswordKeygen, url.host()); | 2545 chrome::kCryptoModulePasswordKeygen, url.host()); |
2542 } | 2546 } |
2543 #endif | 2547 #endif |
2544 | 2548 |
2545 } // namespace chrome | 2549 } // namespace chrome |
OLD | NEW |