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

Side by Side Diff: chrome/renderer/media/chrome_key_systems.cc

Issue 253593002: Componentize EncryptedMediaMessageFilter and rename it CdmMessageFilter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/media/chrome_key_systems.h" 5 #include "chrome/renderer/media/chrome_key_systems.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "base/strings/string_split.h" 12 #include "base/strings/string_split.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "content/public/renderer/render_thread.h" 15 #include "content/public/renderer/render_thread.h"
16 16
17 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. 17 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
18 18
19 // The following must be after widevine_cdm_version.h. 19 // The following must be after widevine_cdm_version.h.
20 20
21 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_MIN_GLIBC_VERSION) 21 #if defined(WIDEVINE_CDM_AVAILABLE) && defined(WIDEVINE_CDM_MIN_GLIBC_VERSION)
22 #include <gnu/libc-version.h> 22 #include <gnu/libc-version.h>
23 #include "base/version.h" 23 #include "base/version.h"
24 #endif 24 #endif
25 25
26 #if defined(OS_ANDROID) 26 #if defined(OS_ANDROID)
27 #include "chrome/common/encrypted_media_messages_android.h" 27 #include "content/common/media/encrypted_media_messages_android.h"
28 #endif 28 #endif
29 29
30 using content::KeySystemInfo; 30 using content::KeySystemInfo;
31 31
32 const char kAudioWebM[] = "audio/webm"; 32 const char kAudioWebM[] = "audio/webm";
33 const char kVideoWebM[] = "video/webm"; 33 const char kVideoWebM[] = "video/webm";
34 const char kVorbis[] = "vorbis"; 34 const char kVorbis[] = "vorbis";
35 const char kVP8[] = "vp8"; 35 const char kVP8[] = "vp8";
36 const char kVP80[] = "vp8.0"; 36 const char kVP80[] = "vp8.0";
37 37
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 #endif 349 #endif
350 350
351 #if defined(WIDEVINE_CDM_AVAILABLE) 351 #if defined(WIDEVINE_CDM_AVAILABLE)
352 #if defined(ENABLE_PEPPER_CDMS) 352 #if defined(ENABLE_PEPPER_CDMS)
353 AddPepperBasedWidevine(key_systems_info); 353 AddPepperBasedWidevine(key_systems_info);
354 #elif defined(OS_ANDROID) 354 #elif defined(OS_ANDROID)
355 AddAndroidWidevine(key_systems_info); 355 AddAndroidWidevine(key_systems_info);
356 #endif 356 #endif
357 #endif 357 #endif
358 } 358 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698