OLD | NEW |
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 "ppapi/c/dev/ppb_content_decryptor_dev.h" | 5 #include "ppapi/c/dev/ppb_content_decryptor_dev.h" |
6 #include "ppapi/thunk/thunk.h" | 6 #include "ppapi/thunk/thunk.h" |
7 #include "ppapi/thunk/enter.h" | 7 #include "ppapi/thunk/enter.h" |
8 #include "ppapi/thunk/ppb_instance_api.h" | 8 #include "ppapi/thunk/ppb_instance_api.h" |
9 | 9 |
10 namespace ppapi { | 10 namespace ppapi { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 uint16_t system_error) { | 50 uint16_t system_error) { |
51 EnterInstance enter(instance); | 51 EnterInstance enter(instance); |
52 if (enter.succeeded()) { | 52 if (enter.succeeded()) { |
53 enter.functions()->KeyError(instance, key_system, session_id, media_error, | 53 enter.functions()->KeyError(instance, key_system, session_id, media_error, |
54 system_error); | 54 system_error); |
55 } | 55 } |
56 } | 56 } |
57 | 57 |
58 void DeliverBlock(PP_Instance instance, | 58 void DeliverBlock(PP_Instance instance, |
59 PP_Resource decrypted_block, | 59 PP_Resource decrypted_block, |
60 PP_CompletionCallback callback) { | 60 uint32_t id) { |
61 EnterInstance enter(instance); | 61 EnterInstance enter(instance); |
62 if (enter.succeeded()) { | 62 if (enter.succeeded()) { |
63 enter.functions()->DeliverBlock(instance, decrypted_block, callback); | 63 enter.functions()->DeliverBlock(instance, decrypted_block, id); |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 void DeliverFrame(PP_Instance instance, | 67 void DeliverFrame(PP_Instance instance, |
68 PP_Resource decrypted_frame, | 68 PP_Resource decrypted_frame, |
69 PP_CompletionCallback callback) { | 69 PP_CompletionCallback callback) { |
70 EnterInstance enter(instance); | 70 EnterInstance enter(instance); |
71 if (enter.succeeded()) { | 71 if (enter.succeeded()) { |
72 enter.functions()->DeliverFrame(instance, decrypted_frame, callback); | 72 enter.functions()->DeliverFrame(instance, decrypted_frame, callback); |
73 } | 73 } |
(...skipping 19 matching lines...) Expand all Loading... |
93 }; | 93 }; |
94 | 94 |
95 } // namespace | 95 } // namespace |
96 | 96 |
97 const PPB_ContentDecryptor_Dev* GetPPB_ContentDecryptor_Dev_0_1_Thunk() { | 97 const PPB_ContentDecryptor_Dev* GetPPB_ContentDecryptor_Dev_0_1_Thunk() { |
98 return &g_ppb_decryption_thunk; | 98 return &g_ppb_decryption_thunk; |
99 } | 99 } |
100 | 100 |
101 } // namespace thunk | 101 } // namespace thunk |
102 } // namespace ppapi | 102 } // namespace ppapi |
OLD | NEW |