Index: ppapi/thunk/ppb_content_decryption_module_thunk.cc |
diff --git a/ppapi/thunk/ppb_content_decryption_module_thunk.cc b/ppapi/thunk/ppb_content_decryption_module_thunk.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..84b26c8096943b6d38108f186a7b355fc12cda20 |
--- /dev/null |
+++ b/ppapi/thunk/ppb_content_decryption_module_thunk.cc |
@@ -0,0 +1,73 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ppapi/c/dev/ppb_content_decryption_module_dev.h" |
+#include "ppapi/thunk/thunk.h" |
+#include "ppapi/thunk/enter.h" |
+#include "ppapi/thunk/ppb_instance_api.h" |
+ |
+namespace ppapi { |
+namespace thunk { |
+ |
+namespace { |
+ |
+void NeedKey(PP_Instance instance, |
+ PP_Var key_system, |
+ PP_Var session_id, |
+ PP_Resource init_data) { |
+} |
+ |
+void KeyAdded(PP_Instance instance, |
+ PP_Var key_system, |
+ PP_Var session_id) { |
+} |
+ |
+void KeyMessage(PP_Instance instance, |
+ PP_Var key_system, |
+ PP_Var session_id, |
+ PP_Resource message, |
+ PP_Var default_url) { |
+} |
+ |
+void KeyError(PP_Instance instance, |
+ PP_Var key_system, |
+ PP_Var session_id, |
+ uint16_t media_error, |
+ uint16_t system_error) { |
+} |
+ |
+void DeliverBlock(PP_Instance instance, |
+ PP_Resource decrypted_block, |
+ PP_CompletionCallback callback) { |
+} |
+ |
+void DeliverFrame(PP_Instance instance, |
+ PP_Resource decrypted_frame, |
+ PP_CompletionCallback callback) { |
+} |
+ |
+void DeliverSamples(PP_Instance instance, |
+ PP_Resource decrypted_samples, |
+ PP_CompletionCallback callback) { |
+} |
+ |
+const PPB_ContentDecryptionModule_Dev g_ppb_decryption_thunk = { |
+ &NeedKey, |
+ &KeyAdded, |
+ &KeyMessage, |
+ &KeyError, |
+ &DeliverBlock, |
+ &DeliverFrame, |
+ &DeliverSamples |
+}; |
+ |
+} // namespace |
+ |
+const PPB_ContentDecryptionModule_Dev* |
+ GetPPB_ContentDecryptionModule_Dev_0_1_Thunk() { |
+ return &g_ppb_decryption_thunk; |
+} |
+ |
+} // namespace thunk |
+} // namespace ppapi |