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

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: 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
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 Tue Dec 3 17:04:48 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(
40 reference_id, 40 instance, session_id, message, destination_url);
41 message,
42 destination_url);
43 } 41 }
44 42
45 void SessionReady(PP_Instance instance, uint32_t reference_id) { 43 void SessionReady(PP_Instance instance, uint32_t session_id) {
46 VLOG(4) << "PPB_ContentDecryptor_Private::SessionReady()"; 44 VLOG(4) << "PPB_ContentDecryptor_Private::SessionReady()";
47 EnterInstance enter(instance); 45 EnterInstance enter(instance);
48 if (enter.failed()) 46 if (enter.failed())
49 return; 47 return;
50 enter.functions()->SessionReady(instance, reference_id); 48 enter.functions()->SessionReady(instance, session_id);
51 } 49 }
52 50
53 void SessionClosed(PP_Instance instance, uint32_t reference_id) { 51 void SessionClosed(PP_Instance instance, uint32_t session_id) {
54 VLOG(4) << "PPB_ContentDecryptor_Private::SessionClosed()"; 52 VLOG(4) << "PPB_ContentDecryptor_Private::SessionClosed()";
55 EnterInstance enter(instance); 53 EnterInstance enter(instance);
56 if (enter.failed()) 54 if (enter.failed())
57 return; 55 return;
58 enter.functions()->SessionClosed(instance, reference_id); 56 enter.functions()->SessionClosed(instance, session_id);
59 } 57 }
60 58
61 void SessionError(PP_Instance instance, 59 void SessionError(PP_Instance instance,
62 uint32_t reference_id, 60 uint32_t session_id,
63 int32_t media_error, 61 int32_t media_error,
64 int32_t system_code) { 62 int32_t system_code) {
65 VLOG(4) << "PPB_ContentDecryptor_Private::SessionError()"; 63 VLOG(4) << "PPB_ContentDecryptor_Private::SessionError()";
66 EnterInstance enter(instance); 64 EnterInstance enter(instance);
67 if (enter.failed()) 65 if (enter.failed())
68 return; 66 return;
69 enter.functions()->SessionError(instance, 67 enter.functions()->SessionError(
70 reference_id, 68 instance, session_id, media_error, system_code);
71 media_error,
72 system_code);
73 } 69 }
74 70
75 void DeliverBlock(PP_Instance instance, 71 void DeliverBlock(PP_Instance instance,
76 PP_Resource decrypted_block, 72 PP_Resource decrypted_block,
77 const struct PP_DecryptedBlockInfo* decrypted_block_info) { 73 const struct PP_DecryptedBlockInfo* decrypted_block_info) {
78 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverBlock()"; 74 VLOG(4) << "PPB_ContentDecryptor_Private::DeliverBlock()";
79 EnterInstance enter(instance); 75 EnterInstance enter(instance);
80 if (enter.failed()) 76 if (enter.failed())
81 return; 77 return;
82 enter.functions()->DeliverBlock(instance, 78 enter.functions()->DeliverBlock(instance,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 158
163 } // namespace 159 } // namespace
164 160
165 const PPB_ContentDecryptor_Private_0_9* 161 const PPB_ContentDecryptor_Private_0_9*
166 GetPPB_ContentDecryptor_Private_0_9_Thunk() { 162 GetPPB_ContentDecryptor_Private_0_9_Thunk() {
167 return &g_ppb_contentdecryptor_private_thunk_0_9; 163 return &g_ppb_contentdecryptor_private_thunk_0_9;
168 } 164 }
169 165
170 } // namespace thunk 166 } // namespace thunk
171 } // namespace ppapi 167 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698