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

Side by Side Diff: ppapi/proxy/ppp_content_decryptor_private_proxy.h

Issue 496143002: Update Pepper interface for EME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cdm_promise rebase Created 6 years, 3 months 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 #ifndef PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ 6 #define PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/c/private/ppp_content_decryptor_private.h" 12 #include "ppapi/c/private/ppp_content_decryptor_private.h"
12 #include "ppapi/proxy/interface_proxy.h" 13 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/proxy/serialized_structs.h" 14 #include "ppapi/proxy/serialized_structs.h"
14 #include "ppapi/shared_impl/host_resource.h" 15 #include "ppapi/shared_impl/host_resource.h"
15 16
16 namespace ppapi { 17 namespace ppapi {
17 namespace proxy { 18 namespace proxy {
18 19
19 class SerializedVarReceiveInput; 20 class SerializedVarReceiveInput;
20 21
21 class PPP_ContentDecryptor_Private_Proxy : public InterfaceProxy { 22 class PPP_ContentDecryptor_Private_Proxy : public InterfaceProxy {
22 public: 23 public:
23 explicit PPP_ContentDecryptor_Private_Proxy(Dispatcher* dispatcher); 24 explicit PPP_ContentDecryptor_Private_Proxy(Dispatcher* dispatcher);
24 virtual ~PPP_ContentDecryptor_Private_Proxy(); 25 virtual ~PPP_ContentDecryptor_Private_Proxy();
25 26
26 static const PPP_ContentDecryptor_Private* GetProxyInterface(); 27 static const PPP_ContentDecryptor_Private* GetProxyInterface();
27 28
28 private: 29 private:
29 // InterfaceProxy implementation. 30 // InterfaceProxy implementation.
30 virtual bool OnMessageReceived(const IPC::Message& msg); 31 virtual bool OnMessageReceived(const IPC::Message& msg);
31 32
32 // Message handlers. 33 // Message handlers.
33 void OnMsgInitialize(PP_Instance instance, 34 void OnMsgInitialize(PP_Instance instance,
34 SerializedVarReceiveInput key_system); 35 SerializedVarReceiveInput key_system);
36 void OnMsgSetServerCertificate(PP_Instance instance,
37 uint32_t promise_id,
38 std::vector<uint8_t> server_certificate);
35 void OnMsgCreateSession(PP_Instance instance, 39 void OnMsgCreateSession(PP_Instance instance,
36 uint32_t promise_id, 40 uint32_t promise_id,
37 SerializedVarReceiveInput init_data_type, 41 SerializedVarReceiveInput init_data_type,
38 SerializedVarReceiveInput init_data, 42 SerializedVarReceiveInput init_data,
39 PP_SessionType session_type); 43 PP_SessionType session_type);
40 void OnMsgLoadSession(PP_Instance instance, 44 void OnMsgLoadSession(PP_Instance instance,
41 uint32_t promise_id, 45 uint32_t promise_id,
42 SerializedVarReceiveInput web_session_id); 46 SerializedVarReceiveInput web_session_id);
43 void OnMsgUpdateSession(PP_Instance instance, 47 void OnMsgUpdateSession(PP_Instance instance,
44 uint32_t promise_id, 48 uint32_t promise_id,
45 SerializedVarReceiveInput web_session_id, 49 SerializedVarReceiveInput web_session_id,
46 SerializedVarReceiveInput response); 50 SerializedVarReceiveInput response);
47 void OnMsgReleaseSession(PP_Instance instance, 51 void OnMsgCloseSession(PP_Instance instance,
48 uint32_t promise_id, 52 uint32_t promise_id,
49 SerializedVarReceiveInput web_session_id); 53 const std::string& web_session_id);
54 void OnMsgRemoveSession(PP_Instance instance,
55 uint32_t promise_id,
56 const std::string& web_session_id);
57 void OnMsgGetUsableKeyIds(PP_Instance instance,
58 uint32_t promise_id,
59 const std::string& web_session_id);
50 void OnMsgDecrypt(PP_Instance instance, 60 void OnMsgDecrypt(PP_Instance instance,
51 const PPPDecryptor_Buffer& encrypted_buffer, 61 const PPPDecryptor_Buffer& encrypted_buffer,
52 const std::string& serialized_encrypted_block_info); 62 const std::string& serialized_encrypted_block_info);
53 void OnMsgInitializeAudioDecoder( 63 void OnMsgInitializeAudioDecoder(
54 PP_Instance instance, 64 PP_Instance instance,
55 const std::string& decoder_config, 65 const std::string& decoder_config,
56 const PPPDecryptor_Buffer& extra_data_buffer); 66 const PPPDecryptor_Buffer& extra_data_buffer);
57 void OnMsgInitializeVideoDecoder( 67 void OnMsgInitializeVideoDecoder(
58 PP_Instance instance, 68 PP_Instance instance,
59 const std::string& decoder_config, 69 const std::string& decoder_config,
(...skipping 12 matching lines...) Expand all
72 82
73 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; 83 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_;
74 84
75 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); 85 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy);
76 }; 86 };
77 87
78 } // namespace proxy 88 } // namespace proxy
79 } // namespace ppapi 89 } // namespace ppapi
80 90
81 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ 91 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698