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

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: Addressed jam's comments. 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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 #include "chrome/browser/chromeos/login/startup_utils.h" 169 #include "chrome/browser/chromeos/login/startup_utils.h"
170 #include "chrome/browser/chromeos/login/user_manager.h" 170 #include "chrome/browser/chromeos/login/user_manager.h"
171 #include "chrome/browser/chromeos/system/input_device_settings.h" 171 #include "chrome/browser/chromeos/system/input_device_settings.h"
172 #include "chromeos/chromeos_switches.h" 172 #include "chromeos/chromeos_switches.h"
173 #elif defined(OS_LINUX) 173 #elif defined(OS_LINUX)
174 #include "chrome/browser/chrome_browser_main_linux.h" 174 #include "chrome/browser/chrome_browser_main_linux.h"
175 #elif defined(OS_ANDROID) 175 #elif defined(OS_ANDROID)
176 #include "chrome/browser/android/new_tab_page_url_handler.h" 176 #include "chrome/browser/android/new_tab_page_url_handler.h"
177 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" 177 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h"
178 #include "chrome/browser/chrome_browser_main_android.h" 178 #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" 179 #include "chrome/common/descriptors_android.h"
181 #include "components/breakpad/browser/crash_dump_manager_android.h" 180 #include "components/breakpad/browser/crash_dump_manager_android.h"
182 #elif defined(OS_POSIX) 181 #elif defined(OS_POSIX)
183 #include "chrome/browser/chrome_browser_main_posix.h" 182 #include "chrome/browser/chrome_browser_main_posix.h"
184 #endif 183 #endif
185 184
186 #if defined(OS_POSIX) && !defined(OS_MACOSX) 185 #if defined(OS_POSIX) && !defined(OS_MACOSX)
187 #include "base/debug/leak_annotations.h" 186 #include "base/debug/leak_annotations.h"
188 #include "base/linux_util.h" 187 #include "base/linux_util.h"
189 #include "components/breakpad/app/breakpad_linux.h" 188 #include "components/breakpad/app/breakpad_linux.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 host->AddFilter(webrtc_logging_handler_host); 926 host->AddFilter(webrtc_logging_handler_host);
928 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>( 927 host->SetUserData(host, new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
929 webrtc_logging_handler_host)); 928 webrtc_logging_handler_host));
930 #endif 929 #endif
931 #if !defined(DISABLE_NACL) 930 #if !defined(DISABLE_NACL)
932 host->AddFilter(new nacl::NaClHostMessageFilter( 931 host->AddFilter(new nacl::NaClHostMessageFilter(
933 id, profile->IsOffTheRecord(), 932 id, profile->IsOffTheRecord(),
934 profile->GetPath(), 933 profile->GetPath(),
935 context)); 934 context));
936 #endif 935 #endif
937 #if defined(OS_ANDROID)
938 host->AddFilter(new EncryptedMediaMessageFilterAndroid());
939 #endif
940 if (switches::IsNewProfileManagement()) 936 if (switches::IsNewProfileManagement())
941 host->AddFilter(new PrincipalsMessageFilter(id)); 937 host->AddFilter(new PrincipalsMessageFilter(id));
942 938
943 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( 939 host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
944 profile->IsOffTheRecord())); 940 profile->IsOffTheRecord()));
945 941
946 SendExtensionWebRequestStatusToHost(host); 942 SendExtensionWebRequestStatusToHost(host);
947 943
948 RendererContentSettingRules rules; 944 RendererContentSettingRules rules;
949 if (host->IsGuest()) { 945 if (host->IsGuest()) {
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
2666 switches::kDisableWebRtcEncryption, 2662 switches::kDisableWebRtcEncryption,
2667 }; 2663 };
2668 to_command_line->CopySwitchesFrom(from_command_line, 2664 to_command_line->CopySwitchesFrom(from_command_line,
2669 kWebRtcDevSwitchNames, 2665 kWebRtcDevSwitchNames,
2670 arraysize(kWebRtcDevSwitchNames)); 2666 arraysize(kWebRtcDevSwitchNames));
2671 } 2667 }
2672 } 2668 }
2673 #endif // defined(ENABLE_WEBRTC) 2669 #endif // defined(ENABLE_WEBRTC)
2674 2670
2675 } // namespace chrome 2671 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698