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

Side by Side Diff: ppapi/thunk/ppb_content_decryptor_private_thunk.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 unified diff | Download patch
« no previous file with comments | « ppapi/proxy/ppp_content_decryptor_private_proxy.cc ('k') | ppapi/thunk/ppb_instance_api.h » ('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 // From private/ppb_content_decryptor_private.idl, 5 // From private/ppb_content_decryptor_private.idl,
6 // modified Wed Nov 27 11:47:56 2013. 6 // modified Fri Dec 6 12:16:22 2013.
7 7
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/c/private/ppb_content_decryptor_private.h" 9 #include "ppapi/c/private/ppb_content_decryptor_private.h"
10 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
12 #include "ppapi/thunk/ppb_instance_api.h" 12 #include "ppapi/thunk/ppb_instance_api.h"
13 #include "ppapi/thunk/resource_creation_api.h" 13 #include "ppapi/thunk/resource_creation_api.h"
14 #include "ppapi/thunk/thunk.h" 14 #include "ppapi/thunk/thunk.h"
15 15
16 namespace ppapi { 16 namespace ppapi {
17 namespace thunk { 17 namespace thunk {
18 18
19 namespace { 19 namespace {
20 20
21 void SessionCreated(PP_Instance instance, 21 void SessionCreated(PP_Instance instance,
22 uint32_t reference_id, 22 uint32_t session_id,
23 struct PP_Var web_session_id) { 23 struct PP_Var web_session_id) {
24 VLOG(4) << "PPB_ContentDecryptor_Private::SessionCreated()"; 24 VLOG(4) << "PPB_ContentDecryptor_Private::SessionCreated()";
25 EnterInstance enter(instance); 25 EnterInstance enter(instance);
26 if (enter.failed()) 26 if (enter.failed())
27 return; 27 return;
28 enter.functions()->SessionCreated(instance, reference_id, web_session_id); 28 enter.functions()->SessionCreated(instance, session_id, web_session_id);
29 } 29 }
30 30
31 void SessionMessage(PP_Instance instance, 31 void SessionMessage(PP_Instance instance,
32 uint32_t reference_id, 32 uint32_t session_id,
33 struct PP_Var message, 33 struct PP_Var message,
34 struct PP_Var destination_url) { 34 struct PP_Var destination_url) {
35 VLOG(4) << "PPB_ContentDecryptor_Private::SessionMessage()"; 35 VLOG(4) << "PPB_ContentDecryptor_Private::SessionMessage()";
36 EnterInstance enter(instance); 36 EnterInstance enter(instance);
37 if (enter.failed()) 37 if (enter.failed())
38 return; 38 return;
39 enter.functions()->SessionMessage(instance, 39 enter.functions()->SessionMessage(instance,
40 reference_id, 40 session_id,
41 message, 41 message,
42 destination_url); 42 destination_url);
43 } 43 }
44 44
45 void SessionReady(PP_Instance instance, uint32_t reference_id) { 45 void SessionReady(PP_Instance instance, uint32_t session_id) {
46 VLOG(4) << "PPB_ContentDecryptor_Private::SessionReady()"; 46 VLOG(4) << "PPB_ContentDecryptor_Private::SessionReady()";
47 EnterInstance enter(instance); 47 EnterInstance enter(instance);
48 if (enter.failed()) 48 if (enter.failed())
49 return; 49 return;
50 enter.functions()->SessionReady(instance, reference_id); 50 enter.functions()->SessionReady(instance, session_id);
51 } 51 }
52 52
53 void SessionClosed(PP_Instance instance, uint32_t reference_id) { 53 void SessionClosed(PP_Instance instance, uint32_t session_id) {
54 VLOG(4) << "PPB_ContentDecryptor_Private::SessionClosed()"; 54 VLOG(4) << "PPB_ContentDecryptor_Private::SessionClosed()";
55 EnterInstance enter(instance); 55 EnterInstance enter(instance);
56 if (enter.failed()) 56 if (enter.failed())
57 return; 57 return;
58 enter.functions()->SessionClosed(instance, reference_id); 58 enter.functions()->SessionClosed(instance, session_id);
59 } 59 }
60 60
61 void SessionError(PP_Instance instance, 61 void SessionError(PP_Instance instance,
62 uint32_t reference_id, 62 uint32_t session_id,
63 int32_t media_error, 63 int32_t media_error,
64 int32_t system_code) { 64 int32_t system_code) {
65 VLOG(4) << "PPB_ContentDecryptor_Private::SessionError()"; 65 VLOG(4) << "PPB_ContentDecryptor_Private::SessionError()";
66 EnterInstance enter(instance); 66 EnterInstance enter(instance);
67 if (enter.failed()) 67 if (enter.failed())
68 return; 68 return;
69 enter.functions()->SessionError(instance, 69 enter.functions()->SessionError(instance,
70 reference_id, 70 session_id,
71 media_error, 71 media_error,
72 system_code); 72 system_code);
73 } 73 }
74 74
75 void DeliverBlock(PP_Instance instance, 75 void DeliverBlock(PP_Instance instance,
76 PP_Resource decrypted_block, 76 PP_Resource decrypted_block,
77 const struct PP_DecryptedBlockInfo* decrypted_block_info) { 77 const struct PP_DecryptedBlockInfo* decrypted_block_info) {
78 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverBlock()"; 78 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverBlock()";
79 EnterInstance enter(instance); 79 EnterInstance enter(instance);
80 if (enter.failed()) 80 if (enter.failed())
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 } // namespace 163 } // namespace
164 164
165 const PPB_ContentDecryptor_Private_0_9* 165 const PPB_ContentDecryptor_Private_0_9*
166 GetPPB_ContentDecryptor_Private_0_9_Thunk() { 166 GetPPB_ContentDecryptor_Private_0_9_Thunk() {
167 return &g_ppb_contentdecryptor_private_thunk_0_9; 167 return &g_ppb_contentdecryptor_private_thunk_0_9;
168 } 168 }
169 169
170 } // namespace thunk 170 } // namespace thunk
171 } // namespace ppapi 171 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_content_decryptor_private_proxy.cc ('k') | ppapi/thunk/ppb_instance_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698