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

Unified Diff: content/renderer/pepper/content_decryptor_delegate.cc

Issue 131653003: Support LoadSession() in MediaKeys and PPP_ContentDecryptor_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 6 years, 10 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 | « content/renderer/pepper/content_decryptor_delegate.h ('k') | media/base/android/media_drm_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/content_decryptor_delegate.cc
diff --git a/content/renderer/pepper/content_decryptor_delegate.cc b/content/renderer/pepper/content_decryptor_delegate.cc
index 26873ef9a9cdff7250cf19b0b140362f1f9b0a1a..f9747a091f38330c9303a782771bae5c45c2f62e 100644
--- a/content/renderer/pepper/content_decryptor_delegate.cc
+++ b/content/renderer/pepper/content_decryptor_delegate.cc
@@ -286,20 +286,27 @@ void ContentDecryptorDelegate::InstanceCrashed() {
}
bool ContentDecryptorDelegate::CreateSession(uint32 session_id,
- const std::string& type,
+ const std::string& content_type,
const uint8* init_data,
int init_data_length) {
PP_Var init_data_array =
PpapiGlobals::Get()->GetVarTracker()->MakeArrayBufferPPVar(
init_data_length, init_data);
- plugin_decryption_interface_->CreateSession(pp_instance_,
- session_id,
- StringVar::StringToPPVar(type),
- init_data_array);
+ plugin_decryption_interface_->CreateSession(
+ pp_instance_,
+ session_id,
+ StringVar::StringToPPVar(content_type),
+ init_data_array);
return true;
}
+void ContentDecryptorDelegate::LoadSession(uint32 session_id,
+ const std::string& web_session_id) {
+ plugin_decryption_interface_->LoadSession(
+ pp_instance_, session_id, StringVar::StringToPPVar(web_session_id));
+}
+
bool ContentDecryptorDelegate::UpdateSession(uint32 session_id,
const uint8* response,
int response_length) {
« no previous file with comments | « content/renderer/pepper/content_decryptor_delegate.h ('k') | media/base/android/media_drm_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698