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

Unified Diff: content/browser/media/android/encrypted_media_message_filter_android.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, 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/media/android/encrypted_media_message_filter_android.cc
diff --git a/chrome/browser/media/encrypted_media_message_filter_android.cc b/content/browser/media/android/encrypted_media_message_filter_android.cc
similarity index 90%
rename from chrome/browser/media/encrypted_media_message_filter_android.cc
rename to content/browser/media/android/encrypted_media_message_filter_android.cc
index 7afbec803a99a695b58a5e51fda1466fd307f340..319b90630ac4feafef0cd8a1999e66b990294abd 100644
--- a/chrome/browser/media/encrypted_media_message_filter_android.cc
+++ b/content/browser/media/android/encrypted_media_message_filter_android.cc
@@ -2,21 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/media/encrypted_media_message_filter_android.h"
+#include "content/browser/media/android/encrypted_media_message_filter_android.h"
#include <string>
-#include "chrome/common/encrypted_media_messages_android.h"
+#include "content/common/media/encrypted_media_messages_android.h"
#include "ipc/ipc_message_macros.h"
#include "media/base/android/media_codec_bridge.h"
#include "media/base/android/media_drm_bridge.h"
-using content::BrowserThread;
-using content::SupportedCodecs;
using media::MediaCodecBridge;
using media::MediaDrmBridge;
-namespace chrome {
+namespace content {
const size_t kMaxKeySystemLength = 256;
@@ -74,7 +72,7 @@ bool EncryptedMediaMessageFilterAndroid::OnMessageReceived(
bool handled = true;
IPC_BEGIN_MESSAGE_MAP_EX(
EncryptedMediaMessageFilterAndroid, message, *message_was_ok)
- IPC_MESSAGE_HANDLER(ChromeViewHostMsg_GetSupportedKeySystems,
+ IPC_MESSAGE_HANDLER(ViewHostMsg_GetSupportedKeySystems,
OnGetSupportedKeySystems)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
@@ -84,7 +82,7 @@ bool EncryptedMediaMessageFilterAndroid::OnMessageReceived(
void EncryptedMediaMessageFilterAndroid::OverrideThreadForMessage(
const IPC::Message& message, BrowserThread::ID* thread) {
// Move the IPC handling to FILE thread as it is not very cheap.
- if (message.type() == ChromeViewHostMsg_GetSupportedKeySystems::ID)
+ if (message.type() == ViewHostMsg_GetSupportedKeySystems::ID)
*thread = BrowserThread::FILE;
}
@@ -111,4 +109,4 @@ void EncryptedMediaMessageFilterAndroid::OnGetSupportedKeySystems(
response->non_compositing_codecs = GetSupportedCodecs(request, false);
}
-} // namespace chrome
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698