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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/cloud_devices/common/cloud_devices_switches.h" | 100 #include "components/cloud_devices/common/cloud_devices_switches.h" |
| 101 #include "components/encrypted_media/browser/encrypted_media_message_filter_andr
oid.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" |
110 #include "content/public/browser/browser_main_parts.h" | 111 #include "content/public/browser/browser_main_parts.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 #include "chrome/browser/chromeos/login/startup_utils.h" | 170 #include "chrome/browser/chromeos/login/startup_utils.h" |
170 #include "chrome/browser/chromeos/login/user_manager.h" | 171 #include "chrome/browser/chromeos/login/user_manager.h" |
171 #include "chrome/browser/chromeos/system/input_device_settings.h" | 172 #include "chrome/browser/chromeos/system/input_device_settings.h" |
172 #include "chromeos/chromeos_switches.h" | 173 #include "chromeos/chromeos_switches.h" |
173 #elif defined(OS_LINUX) | 174 #elif defined(OS_LINUX) |
174 #include "chrome/browser/chrome_browser_main_linux.h" | 175 #include "chrome/browser/chrome_browser_main_linux.h" |
175 #elif defined(OS_ANDROID) | 176 #elif defined(OS_ANDROID) |
176 #include "chrome/browser/android/new_tab_page_url_handler.h" | 177 #include "chrome/browser/android/new_tab_page_url_handler.h" |
177 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 178 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
178 #include "chrome/browser/chrome_browser_main_android.h" | 179 #include "chrome/browser/chrome_browser_main_android.h" |
179 #include "chrome/browser/media/encrypted_media_message_filter_android.h" | |
180 #include "chrome/common/descriptors_android.h" | 180 #include "chrome/common/descriptors_android.h" |
181 #include "components/breakpad/browser/crash_dump_manager_android.h" | 181 #include "components/breakpad/browser/crash_dump_manager_android.h" |
182 #elif defined(OS_POSIX) | 182 #elif defined(OS_POSIX) |
183 #include "chrome/browser/chrome_browser_main_posix.h" | 183 #include "chrome/browser/chrome_browser_main_posix.h" |
184 #endif | 184 #endif |
185 | 185 |
186 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 186 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
187 #include "base/debug/leak_annotations.h" | 187 #include "base/debug/leak_annotations.h" |
188 #include "base/linux_util.h" | 188 #include "base/linux_util.h" |
189 #include "components/breakpad/app/breakpad_linux.h" | 189 #include "components/breakpad/app/breakpad_linux.h" |
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( | 928 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( |
929 webrtc_logging_handler_host)); | 929 webrtc_logging_handler_host)); |
930 #endif | 930 #endif |
931 #if !defined(DISABLE_NACL) | 931 #if !defined(DISABLE_NACL) |
932 host->AddFilter(new nacl::NaClHostMessageFilter( | 932 host->AddFilter(new nacl::NaClHostMessageFilter( |
933 id, profile->IsOffTheRecord(), | 933 id, profile->IsOffTheRecord(), |
934 profile->GetPath(), | 934 profile->GetPath(), |
935 context)); | 935 context)); |
936 #endif | 936 #endif |
937 #if defined(OS_ANDROID) | 937 #if defined(OS_ANDROID) |
938 host->AddFilter(new EncryptedMediaMessageFilterAndroid()); | 938 host->AddFilter(new encrypted_media::EncryptedMediaMessageFilterAndroid()); |
939 #endif | 939 #endif |
940 if (switches::IsNewProfileManagement()) | 940 if (switches::IsNewProfileManagement()) |
941 host->AddFilter(new PrincipalsMessageFilter(id)); | 941 host->AddFilter(new PrincipalsMessageFilter(id)); |
942 | 942 |
943 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 943 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
944 profile->IsOffTheRecord())); | 944 profile->IsOffTheRecord())); |
945 | 945 |
946 SendExtensionWebRequestStatusToHost(host); | 946 SendExtensionWebRequestStatusToHost(host); |
947 | 947 |
948 RendererContentSettingRules rules; | 948 RendererContentSettingRules rules; |
(...skipping 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2666 switches::kDisableWebRtcEncryption, | 2666 switches::kDisableWebRtcEncryption, |
2667 }; | 2667 }; |
2668 to_command_line->CopySwitchesFrom(from_command_line, | 2668 to_command_line->CopySwitchesFrom(from_command_line, |
2669 kWebRtcDevSwitchNames, | 2669 kWebRtcDevSwitchNames, |
2670 arraysize(kWebRtcDevSwitchNames)); | 2670 arraysize(kWebRtcDevSwitchNames)); |
2671 } | 2671 } |
2672 } | 2672 } |
2673 #endif // defined(ENABLE_WEBRTC) | 2673 #endif // defined(ENABLE_WEBRTC) |
2674 | 2674 |
2675 } // namespace chrome | 2675 } // namespace chrome |
OLD | NEW |