Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 253593002: Componentize EncryptedMediaMessageFilter and rename it CdmMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the empty library problem in macos build. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/media/encrypted_media_message_filter_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
91 #include "chrome/common/env_vars.h" 91 #include "chrome/common/env_vars.h"
92 #include "chrome/common/extensions/extension_process_policy.h" 92 #include "chrome/common/extensions/extension_process_policy.h"
93 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h" 93 #include "chrome/common/extensions/manifest_handlers/app_isolation_info.h"
94 #include "chrome/common/logging_chrome.h" 94 #include "chrome/common/logging_chrome.h"
95 #include "chrome/common/pepper_permission_util.h" 95 #include "chrome/common/pepper_permission_util.h"
96 #include "chrome/common/pref_names.h" 96 #include "chrome/common/pref_names.h"
97 #include "chrome/common/render_messages.h" 97 #include "chrome/common/render_messages.h"
98 #include "chrome/common/url_constants.h" 98 #include "chrome/common/url_constants.h"
99 #include "chrome/installer/util/google_update_settings.h" 99 #include "chrome/installer/util/google_update_settings.h"
100 #include "chromeos/chromeos_constants.h" 100 #include "chromeos/chromeos_constants.h"
101 #include "components/cdm/browser/cdm_message_filter_android.h"
101 #include "components/cloud_devices/common/cloud_devices_switches.h" 102 #include "components/cloud_devices/common/cloud_devices_switches.h"
102 #include "components/nacl/browser/nacl_browser.h" 103 #include "components/nacl/browser/nacl_browser.h"
103 #include "components/nacl/browser/nacl_host_message_filter.h" 104 #include "components/nacl/browser/nacl_host_message_filter.h"
104 #include "components/nacl/browser/nacl_process_host.h" 105 #include "components/nacl/browser/nacl_process_host.h"
105 #include "components/nacl/common/nacl_process_type.h" 106 #include "components/nacl/common/nacl_process_type.h"
106 #include "components/nacl/common/nacl_switches.h" 107 #include "components/nacl/common/nacl_switches.h"
107 #include "components/signin/core/common/profile_management_switches.h" 108 #include "components/signin/core/common/profile_management_switches.h"
108 #include "components/translate/core/common/translate_switches.h" 109 #include "components/translate/core/common/translate_switches.h"
109 #include "components/user_prefs/pref_registry_syncable.h" 110 #include "components/user_prefs/pref_registry_syncable.h"
110 #include "content/public/browser/browser_child_process_host.h" 111 #include "content/public/browser/browser_child_process_host.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( 923 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
924 webrtc_logging_handler_host)); 924 webrtc_logging_handler_host));
925 #endif 925 #endif
926 #if !defined(DISABLE_NACL) 926 #if !defined(DISABLE_NACL)
927 host->AddFilter(new nacl::NaClHostMessageFilter( 927 host->AddFilter(new nacl::NaClHostMessageFilter(
928 id, profile->IsOffTheRecord(), 928 id, profile->IsOffTheRecord(),
929 profile->GetPath(), 929 profile->GetPath(),
930 context)); 930 context));
931 #endif 931 #endif
932 #if defined(OS_ANDROID) 932 #if defined(OS_ANDROID)
933 host->AddFilter(new EncryptedMediaMessageFilterAndroid()); 933 host->AddFilter(new cdm::CdmMessageFilterAndroid());
934 #endif 934 #endif
935 if (switches::IsNewProfileManagement()) 935 if (switches::IsNewProfileManagement())
936 host->AddFilter(new PrincipalsMessageFilter(id)); 936 host->AddFilter(new PrincipalsMessageFilter(id));
937 937
938 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( 938 host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
939 profile->IsOffTheRecord())); 939 profile->IsOffTheRecord()));
940 940
941 SendExtensionWebRequestStatusToHost(host); 941 SendExtensionWebRequestStatusToHost(host);
942 942
943 RendererContentSettingRules rules; 943 RendererContentSettingRules rules;
(...skipping 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after
2679 switches::kDisableWebRtcEncryption, 2679 switches::kDisableWebRtcEncryption,
2680 }; 2680 };
2681 to_command_line->CopySwitchesFrom(from_command_line, 2681 to_command_line->CopySwitchesFrom(from_command_line,
2682 kWebRtcDevSwitchNames, 2682 kWebRtcDevSwitchNames,
2683 arraysize(kWebRtcDevSwitchNames)); 2683 arraysize(kWebRtcDevSwitchNames));
2684 } 2684 }
2685 } 2685 }
2686 #endif // defined(ENABLE_WEBRTC) 2686 #endif // defined(ENABLE_WEBRTC)
2687 2687
2688 } // namespace chrome 2688 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/media/encrypted_media_message_filter_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698