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

Unified Diff: media/blink/null_encrypted_media_player_support.cc

Issue 653213002: Implement MediaSource support for mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implement! 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 | « no previous file | mojo/services/html_viewer/webmimeregistry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/null_encrypted_media_player_support.cc
diff --git a/media/blink/null_encrypted_media_player_support.cc b/media/blink/null_encrypted_media_player_support.cc
index a67893bc7e5ac91fb790cb53c52c493f1c58cc5d..240e23e5b5c527388c786666c0e4d8d01facd25a 100644
--- a/media/blink/null_encrypted_media_player_support.cc
+++ b/media/blink/null_encrypted_media_player_support.cc
@@ -4,11 +4,17 @@
#include "media/blink/null_encrypted_media_player_support.h"
+#include "base/bind.h"
#include "third_party/WebKit/public/platform/WebContentDecryptionModule.h"
#include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h"
namespace media {
+static void NeedKeyHandler(const std::string& type,
jamesr 2014/10/16 18:24:01 i think instead of static putting this in a anonym
DaleCurtis 2014/10/16 18:29:50 media code typically prefers the static prefix to
+ const std::vector<uint8>& init_data) {
+ NOTIMPLEMENTED();
+}
+
scoped_ptr<EncryptedMediaPlayerSupport>
NullEncryptedMediaPlayerSupport::Create(blink::WebMediaPlayerClient* client) {
return scoped_ptr<EncryptedMediaPlayerSupport>(
@@ -66,7 +72,7 @@ void NullEncryptedMediaPlayerSupport::SetContentDecryptionModule(
}
Demuxer::NeedKeyCB NullEncryptedMediaPlayerSupport::CreateNeedKeyCB() {
- return Demuxer::NeedKeyCB();
+ return base::Bind(&NeedKeyHandler);
}
SetDecryptorReadyCB
« no previous file with comments | « no previous file | mojo/services/html_viewer/webmimeregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698