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 #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 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual ~PPP_ContentDecryptor_Private_Proxy(); | 25 virtual ~PPP_ContentDecryptor_Private_Proxy(); |
26 | 26 |
27 static const PPP_ContentDecryptor_Private* GetProxyInterface(); | 27 static const PPP_ContentDecryptor_Private* GetProxyInterface(); |
28 | 28 |
29 private: | 29 private: |
30 // InterfaceProxy implementation. | 30 // InterfaceProxy implementation. |
31 virtual bool OnMessageReceived(const IPC::Message& msg); | 31 virtual bool OnMessageReceived(const IPC::Message& msg); |
32 | 32 |
33 // Message handlers. | 33 // Message handlers. |
34 void OnMsgInitialize(PP_Instance instance, | 34 void OnMsgInitialize(PP_Instance instance, |
| 35 uint32_t promise_id, |
35 SerializedVarReceiveInput key_system, | 36 SerializedVarReceiveInput key_system, |
36 PP_Bool allow_distinctive_identifier, | 37 PP_Bool allow_distinctive_identifier, |
37 PP_Bool allow_persistent_state); | 38 PP_Bool allow_persistent_state); |
38 void OnMsgSetServerCertificate(PP_Instance instance, | 39 void OnMsgSetServerCertificate(PP_Instance instance, |
39 uint32_t promise_id, | 40 uint32_t promise_id, |
40 std::vector<uint8_t> server_certificate); | 41 std::vector<uint8_t> server_certificate); |
41 void OnMsgCreateSessionAndGenerateRequest( | 42 void OnMsgCreateSessionAndGenerateRequest( |
42 PP_Instance instance, | 43 PP_Instance instance, |
43 uint32_t promise_id, | 44 uint32_t promise_id, |
44 PP_SessionType session_type, | 45 PP_SessionType session_type, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 84 |
84 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; | 85 const PPP_ContentDecryptor_Private* ppp_decryptor_impl_; |
85 | 86 |
86 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); | 87 DISALLOW_COPY_AND_ASSIGN(PPP_ContentDecryptor_Private_Proxy); |
87 }; | 88 }; |
88 | 89 |
89 } // namespace proxy | 90 } // namespace proxy |
90 } // namespace ppapi | 91 } // namespace ppapi |
91 | 92 |
92 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ | 93 #endif // PPAPI_PROXY_PPP_CONTENT_DECRYPTOR_PRIVATE_PROXY_H_ |
OLD | NEW |