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

Unified Diff: components/cdm/browser/cdm_message_filter_android.cc

Issue 665343002: Move KeySystemInfo to media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/cdm/DEPS ('k') | components/cdm/common/cdm_messages_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cdm/browser/cdm_message_filter_android.cc
diff --git a/components/cdm/browser/cdm_message_filter_android.cc b/components/cdm/browser/cdm_message_filter_android.cc
index ccea5fe872664e245b6c409ae46b83f846bbbabf..a19a03747e8fca8785cb3a4df6ee7ec919afc8f5 100644
--- a/components/cdm/browser/cdm_message_filter_android.cc
+++ b/components/cdm/browser/cdm_message_filter_android.cc
@@ -13,9 +13,9 @@
#include "media/base/android/media_drm_bridge.h"
using content::BrowserThread;
-using content::SupportedCodecs;
using media::MediaCodecBridge;
using media::MediaDrmBridge;
+using media::SupportedCodecs;
namespace cdm {
@@ -34,12 +34,12 @@ struct CodecInfo {
};
const CodecInfo kCodecsToQuery[] = {
- {content::EME_CODEC_WEBM_VORBIS, CODEC_AUDIO, "vorbis", "video/webm"},
- {content::EME_CODEC_WEBM_VP8, CODEC_VIDEO, "vp8", "video/webm"},
- {content::EME_CODEC_WEBM_VP9, CODEC_VIDEO, "vp9", "video/webm"},
+ {media::EME_CODEC_WEBM_VORBIS, CODEC_AUDIO, "vorbis", "video/webm"},
+ {media::EME_CODEC_WEBM_VP8, CODEC_VIDEO, "vp8", "video/webm"},
+ {media::EME_CODEC_WEBM_VP9, CODEC_VIDEO, "vp9", "video/webm"},
#if defined(USE_PROPRIETARY_CODECS)
- {content::EME_CODEC_MP4_AAC, CODEC_AUDIO, "mp4a", "video/mp4"},
- {content::EME_CODEC_MP4_AVC1, CODEC_VIDEO, "avc1", "video/mp4"}
+ {media::EME_CODEC_MP4_AAC, CODEC_AUDIO, "mp4a", "video/mp4"},
+ {media::EME_CODEC_MP4_AVC1, CODEC_VIDEO, "avc1", "video/mp4"}
#endif // defined(USE_PROPRIETARY_CODECS)
};
@@ -47,7 +47,7 @@ static SupportedCodecs GetSupportedCodecs(
const SupportedKeySystemRequest& request,
bool video_must_be_compositable) {
const std::string& key_system = request.key_system;
- SupportedCodecs supported_codecs = content::EME_CODEC_NONE;
+ SupportedCodecs supported_codecs = media::EME_CODEC_NONE;
for (size_t i = 0; i < arraysize(kCodecsToQuery); ++i) {
const CodecInfo& info = kCodecsToQuery[i];
@@ -106,7 +106,7 @@ void CdmMessageFilterAndroid::OnQueryKeySystemSupport(
if (!MediaDrmBridge::IsKeySystemSupported(request.key_system))
return;
- DCHECK(request.codecs & content::EME_CODEC_ALL) << "unrecognized codec";
+ DCHECK(request.codecs & media::EME_CODEC_ALL) << "unrecognized codec";
response->key_system = request.key_system;
// TODO(qinmin): check composition is supported or not.
response->compositing_codecs = GetSupportedCodecs(request, true);
« no previous file with comments | « components/cdm/DEPS ('k') | components/cdm/common/cdm_messages_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698