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

Side by Side Diff: webkit/media/webmediaplayer_impl.cc

Issue 11469040: EME v0.1: Report defaultURL in KeyMessage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed c&p error and added new check for defaultURL Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « webkit/media/webmediaplayer_impl.h ('k') | webkit/media/webmediaplayer_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/media/webmediaplayer_impl.h" 5 #include "webkit/media/webmediaplayer_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 GetClient()->keyError( 1080 GetClient()->keyError(
1081 WebString::fromUTF8(key_system), 1081 WebString::fromUTF8(key_system),
1082 WebString::fromUTF8(session_id), 1082 WebString::fromUTF8(session_id),
1083 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code), 1083 static_cast<WebKit::WebMediaPlayerClient::MediaKeyErrorCode>(error_code),
1084 system_code); 1084 system_code);
1085 } 1085 }
1086 1086
1087 void WebMediaPlayerImpl::OnKeyMessage(const std::string& key_system, 1087 void WebMediaPlayerImpl::OnKeyMessage(const std::string& key_system,
1088 const std::string& session_id, 1088 const std::string& session_id,
1089 const std::string& message, 1089 const std::string& message,
1090 const std::string& /* default_url */) { 1090 const GURL& default_url) {
1091 DCHECK_EQ(main_loop_, MessageLoop::current()); 1091 DCHECK_EQ(main_loop_, MessageLoop::current());
1092 1092
1093 GetClient()->keyMessage(WebString::fromUTF8(key_system), 1093 GetClient()->keyMessage(WebString::fromUTF8(key_system),
1094 WebString::fromUTF8(session_id), 1094 WebString::fromUTF8(session_id),
1095 reinterpret_cast<const uint8*>(message.data()), 1095 reinterpret_cast<const uint8*>(message.data()),
1096 message.size()); 1096 message.size(),
1097 default_url);
1097 } 1098 }
1098 1099
1099 void WebMediaPlayerImpl::SetOpaque(bool opaque) { 1100 void WebMediaPlayerImpl::SetOpaque(bool opaque) {
1100 DCHECK_EQ(main_loop_, MessageLoop::current()); 1101 DCHECK_EQ(main_loop_, MessageLoop::current());
1101 1102
1102 GetClient()->setOpaque(opaque); 1103 GetClient()->setOpaque(opaque);
1103 } 1104 }
1104 1105
1105 void WebMediaPlayerImpl::DataSourceInitialized(const GURL& gurl, bool success) { 1106 void WebMediaPlayerImpl::DataSourceInitialized(const GURL& gurl, bool success) {
1106 DCHECK_EQ(main_loop_, MessageLoop::current()); 1107 DCHECK_EQ(main_loop_, MessageLoop::current());
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 return audio_source_provider_; 1210 return audio_source_provider_;
1210 } 1211 }
1211 1212
1212 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() { 1213 void WebMediaPlayerImpl::IncrementExternallyAllocatedMemory() {
1213 DCHECK_EQ(main_loop_, MessageLoop::current()); 1214 DCHECK_EQ(main_loop_, MessageLoop::current());
1214 incremented_externally_allocated_memory_ = true; 1215 incremented_externally_allocated_memory_ = true;
1215 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory); 1216 v8::V8::AdjustAmountOfExternalAllocatedMemory(kPlayerExtraMemory);
1216 } 1217 }
1217 1218
1218 } // namespace webkit_media 1219 } // namespace webkit_media
OLDNEW
« no previous file with comments | « webkit/media/webmediaplayer_impl.h ('k') | webkit/media/webmediaplayer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698