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

Unified Diff: webkit/media/webmediaplayer_impl.cc

Issue 15772012: Separate MediaKeys interface from Decryptor interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/media/webmediaplayer_impl.h ('k') | webkit/plugins/ppapi/content_decryptor_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/webmediaplayer_impl.cc
diff --git a/webkit/media/webmediaplayer_impl.cc b/webkit/media/webmediaplayer_impl.cc
index 481c0da03d7a72870943fe580492eda647a363b4..efa4d97529c62150f0dcd6d7dea9060c434e6c43 100644
--- a/webkit/media/webmediaplayer_impl.cc
+++ b/webkit/media/webmediaplayer_impl.cc
@@ -1011,7 +1011,7 @@ WebMediaPlayerImpl::OnTextTrack(media::TextKind kind,
#define COMPILE_ASSERT_MATCHING_ENUM(name) \
COMPILE_ASSERT(static_cast<int>(WebKit::WebMediaPlayerClient::name) == \
- static_cast<int>(media::Decryptor::k ## name), \
+ static_cast<int>(media::MediaKeys::k ## name), \
mismatching_enums)
COMPILE_ASSERT_MATCHING_ENUM(UnknownError);
COMPILE_ASSERT_MATCHING_ENUM(ClientError);
@@ -1023,12 +1023,12 @@ COMPILE_ASSERT_MATCHING_ENUM(DomainError);
void WebMediaPlayerImpl::OnKeyError(const std::string& key_system,
const std::string& session_id,
- media::Decryptor::KeyError error_code,
+ media::MediaKeys::KeyError error_code,
int system_code) {
DCHECK(main_loop_->BelongsToCurrentThread());
EmeUMAHistogramEnumeration(
- key_system, "KeyError", error_code, media::Decryptor::kMaxKeyError);
+ key_system, "KeyError", error_code, media::MediaKeys::kMaxKeyError);
GetClient()->keyError(
WebString::fromUTF8(key_system),
« no previous file with comments | « webkit/media/webmediaplayer_impl.h ('k') | webkit/plugins/ppapi/content_decryptor_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698