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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 #include "chrome/common/env_vars.h" | 90 #include "chrome/common/env_vars.h" |
91 #include "chrome/common/extensions/extension_process_policy.h" | 91 #include "chrome/common/extensions/extension_process_policy.h" |
92 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" | 92 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" |
93 #include "chrome/common/logging_chrome.h" | 93 #include "chrome/common/logging_chrome.h" |
94 #include "chrome/common/pepper_permission_util.h" | 94 #include "chrome/common/pepper_permission_util.h" |
95 #include "chrome/common/pref_names.h" | 95 #include "chrome/common/pref_names.h" |
96 #include "chrome/common/render_messages.h" | 96 #include "chrome/common/render_messages.h" |
97 #include "chrome/common/url_constants.h" | 97 #include "chrome/common/url_constants.h" |
98 #include "chrome/installer/util/google_update_settings.h" | 98 #include "chrome/installer/util/google_update_settings.h" |
99 #include "chromeos/chromeos_constants.h" | 99 #include "chromeos/chromeos_constants.h" |
| 100 #include "components/cdm/browser/encrypted_media_message_filter_android.h" |
100 #include "components/cloud_devices/common/cloud_devices_switches.h" | 101 #include "components/cloud_devices/common/cloud_devices_switches.h" |
101 #include "components/nacl/browser/nacl_browser.h" | 102 #include "components/nacl/browser/nacl_browser.h" |
102 #include "components/nacl/browser/nacl_host_message_filter.h" | 103 #include "components/nacl/browser/nacl_host_message_filter.h" |
103 #include "components/nacl/browser/nacl_process_host.h" | 104 #include "components/nacl/browser/nacl_process_host.h" |
104 #include "components/nacl/common/nacl_process_type.h" | 105 #include "components/nacl/common/nacl_process_type.h" |
105 #include "components/nacl/common/nacl_switches.h" | 106 #include "components/nacl/common/nacl_switches.h" |
106 #include "components/signin/core/common/profile_management_switches.h" | 107 #include "components/signin/core/common/profile_management_switches.h" |
107 #include "components/translate/core/common/translate_switches.h" | 108 #include "components/translate/core/common/translate_switches.h" |
108 #include "components/user_prefs/pref_registry_syncable.h" | 109 #include "components/user_prefs/pref_registry_syncable.h" |
109 #include "content/public/browser/browser_child_process_host.h" | 110 #include "content/public/browser/browser_child_process_host.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 #include "chrome/browser/chromeos/login/startup_utils.h" | 171 #include "chrome/browser/chromeos/login/startup_utils.h" |
171 #include "chrome/browser/chromeos/login/user_manager.h" | 172 #include "chrome/browser/chromeos/login/user_manager.h" |
172 #include "chrome/browser/chromeos/system/input_device_settings.h" | 173 #include "chrome/browser/chromeos/system/input_device_settings.h" |
173 #include "chromeos/chromeos_switches.h" | 174 #include "chromeos/chromeos_switches.h" |
174 #elif defined(OS_LINUX) | 175 #elif defined(OS_LINUX) |
175 #include "chrome/browser/chrome_browser_main_linux.h" | 176 #include "chrome/browser/chrome_browser_main_linux.h" |
176 #elif defined(OS_ANDROID) | 177 #elif defined(OS_ANDROID) |
177 #include "chrome/browser/android/new_tab_page_url_handler.h" | 178 #include "chrome/browser/android/new_tab_page_url_handler.h" |
178 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 179 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
179 #include "chrome/browser/chrome_browser_main_android.h" | 180 #include "chrome/browser/chrome_browser_main_android.h" |
180 #include "chrome/browser/media/encrypted_media_message_filter_android.h" | |
181 #include "chrome/common/descriptors_android.h" | 181 #include "chrome/common/descriptors_android.h" |
182 #include "components/breakpad/browser/crash_dump_manager_android.h" | 182 #include "components/breakpad/browser/crash_dump_manager_android.h" |
183 #elif defined(OS_POSIX) | 183 #elif defined(OS_POSIX) |
184 #include "chrome/browser/chrome_browser_main_posix.h" | 184 #include "chrome/browser/chrome_browser_main_posix.h" |
185 #endif | 185 #endif |
186 | 186 |
187 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 187 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
188 #include "base/debug/leak_annotations.h" | 188 #include "base/debug/leak_annotations.h" |
189 #include "base/linux_util.h" | 189 #include "base/linux_util.h" |
190 #include "components/breakpad/app/breakpad_linux.h" | 190 #include "components/breakpad/app/breakpad_linux.h" |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( | 921 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( |
922 webrtc_logging_handler_host)); | 922 webrtc_logging_handler_host)); |
923 #endif | 923 #endif |
924 #if !defined(DISABLE_NACL) | 924 #if !defined(DISABLE_NACL) |
925 host->AddFilter(new nacl::NaClHostMessageFilter( | 925 host->AddFilter(new nacl::NaClHostMessageFilter( |
926 id, profile->IsOffTheRecord(), | 926 id, profile->IsOffTheRecord(), |
927 profile->GetPath(), | 927 profile->GetPath(), |
928 context)); | 928 context)); |
929 #endif | 929 #endif |
930 #if defined(OS_ANDROID) | 930 #if defined(OS_ANDROID) |
931 host->AddFilter(new EncryptedMediaMessageFilterAndroid()); | 931 host->AddFilter(new cdm::EncryptedMediaMessageFilterAndroid()); |
932 #endif | 932 #endif |
933 if (switches::IsNewProfileManagement()) | 933 if (switches::IsNewProfileManagement()) |
934 host->AddFilter(new PrincipalsMessageFilter(id)); | 934 host->AddFilter(new PrincipalsMessageFilter(id)); |
935 | 935 |
936 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 936 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
937 profile->IsOffTheRecord())); | 937 profile->IsOffTheRecord())); |
938 | 938 |
939 SendExtensionWebRequestStatusToHost(host); | 939 SendExtensionWebRequestStatusToHost(host); |
940 | 940 |
941 RendererContentSettingRules rules; | 941 RendererContentSettingRules rules; |
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2672 switches::kDisableWebRtcEncryption, | 2672 switches::kDisableWebRtcEncryption, |
2673 }; | 2673 }; |
2674 to_command_line->CopySwitchesFrom(from_command_line, | 2674 to_command_line->CopySwitchesFrom(from_command_line, |
2675 kWebRtcDevSwitchNames, | 2675 kWebRtcDevSwitchNames, |
2676 arraysize(kWebRtcDevSwitchNames)); | 2676 arraysize(kWebRtcDevSwitchNames)); |
2677 } | 2677 } |
2678 } | 2678 } |
2679 #endif // defined(ENABLE_WEBRTC) | 2679 #endif // defined(ENABLE_WEBRTC) |
2680 | 2680 |
2681 } // namespace chrome | 2681 } // namespace chrome |
OLD | NEW |