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

Unified Diff: ppapi/proxy/ppp_content_decryptor_private_proxy.cc

Issue 105383002: Rename EME WD call parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit Created 7 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/ppp_content_decryptor_private_proxy.cc
diff --git a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
index f0fa47a77fdf2a40023ed88b0c196a20d819a5f0..167e4764d38149ae59d5d455a5a802c9ce21a152 100644
--- a/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
+++ b/ppapi/proxy/ppp_content_decryptor_private_proxy.cc
@@ -125,7 +125,7 @@ void Initialize(PP_Instance instance,
}
void CreateSession(PP_Instance instance,
- uint32_t reference_id,
+ uint32_t session_id,
PP_Var type,
PP_Var init_data) {
HostDispatcher* dispatcher = HostDispatcher::GetForInstance(instance);
@@ -137,14 +137,12 @@ void CreateSession(PP_Instance instance,
dispatcher->Send(new PpapiMsg_PPPContentDecryptor_CreateSession(
API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE,
instance,
- reference_id,
+ session_id,
SerializedVarSendInput(dispatcher, type),
SerializedVarSendInput(dispatcher, init_data)));
}
-void UpdateSession(PP_Instance instance,
- uint32_t reference_id,
- PP_Var response) {
+void UpdateSession(PP_Instance instance, uint32_t session_id, PP_Var response) {
HostDispatcher* dispatcher = HostDispatcher::GetForInstance(instance);
if (!dispatcher) {
NOTREACHED();
@@ -154,11 +152,11 @@ void UpdateSession(PP_Instance instance,
dispatcher->Send(new PpapiMsg_PPPContentDecryptor_UpdateSession(
API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE,
instance,
- reference_id,
+ session_id,
SerializedVarSendInput(dispatcher, response)));
}
-void ReleaseSession(PP_Instance instance, uint32_t reference_id) {
+void ReleaseSession(PP_Instance instance, uint32_t session_id) {
HostDispatcher* dispatcher = HostDispatcher::GetForInstance(instance);
if (!dispatcher) {
NOTREACHED();
@@ -166,7 +164,7 @@ void ReleaseSession(PP_Instance instance, uint32_t reference_id) {
}
dispatcher->Send(new PpapiMsg_PPPContentDecryptor_ReleaseSession(
- API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE, instance, reference_id));
+ API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE, instance, session_id));
}
void Decrypt(PP_Instance instance,
@@ -438,13 +436,13 @@ void PPP_ContentDecryptor_Private_Proxy::OnMsgInitialize(
void PPP_ContentDecryptor_Private_Proxy::OnMsgCreateSession(
PP_Instance instance,
- uint32_t reference_id,
+ uint32_t session_id,
SerializedVarReceiveInput type,
SerializedVarReceiveInput init_data) {
if (ppp_decryptor_impl_) {
CallWhileUnlocked(ppp_decryptor_impl_->CreateSession,
instance,
- reference_id,
+ session_id,
ExtractReceivedVarAndAddRef(dispatcher(), &type),
ExtractReceivedVarAndAddRef(dispatcher(), &init_data));
}
@@ -452,23 +450,23 @@ void PPP_ContentDecryptor_Private_Proxy::OnMsgCreateSession(
void PPP_ContentDecryptor_Private_Proxy::OnMsgUpdateSession(
PP_Instance instance,
- uint32_t reference_id,
+ uint32_t session_id,
SerializedVarReceiveInput response) {
if (ppp_decryptor_impl_) {
CallWhileUnlocked(ppp_decryptor_impl_->UpdateSession,
instance,
- reference_id,
+ session_id,
ExtractReceivedVarAndAddRef(dispatcher(), &response));
}
}
void PPP_ContentDecryptor_Private_Proxy::OnMsgReleaseSession(
PP_Instance instance,
- uint32_t reference_id) {
+ uint32_t session_id) {
if (ppp_decryptor_impl_) {
CallWhileUnlocked(ppp_decryptor_impl_->ReleaseSession,
instance,
- reference_id);
+ session_id);
}
}
« no previous file with comments | « ppapi/proxy/ppp_content_decryptor_private_proxy.h ('k') | ppapi/thunk/ppb_content_decryptor_private_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698