OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ |
6 #define PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ | 6 #define PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ |
7 | 7 |
8 #include "ppapi/proxy/plugin_resource.h" | 8 #include "ppapi/proxy/plugin_resource.h" |
9 #include "ppapi/proxy/ppapi_proxy_export.h" | 9 #include "ppapi/proxy/ppapi_proxy_export.h" |
10 #include "ppapi/thunk/ppb_platform_verification_api.h" | 10 #include "ppapi/thunk/ppb_platform_verification_api.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 scoped_refptr<TrackedCallback> callback; | 27 scoped_refptr<TrackedCallback> callback; |
28 }; | 28 }; |
29 | 29 |
30 virtual ~PlatformVerificationPrivateResource(); | 30 virtual ~PlatformVerificationPrivateResource(); |
31 | 31 |
32 // PluginResource overrides. | 32 // PluginResource overrides. |
33 virtual thunk::PPB_PlatformVerification_API* | 33 virtual thunk::PPB_PlatformVerification_API* |
34 AsPPB_PlatformVerification_API() OVERRIDE; | 34 AsPPB_PlatformVerification_API() OVERRIDE; |
35 | 35 |
36 // PPB_PlatformVerification_API implementation. | 36 // PPB_PlatformVerification_API implementation. |
37 virtual int32_t CanChallengePlatform( | |
38 PP_Bool* can_challenge_platform, | |
39 const scoped_refptr<TrackedCallback>& callback) OVERRIDE; | |
40 virtual int32_t ChallengePlatform( | 37 virtual int32_t ChallengePlatform( |
41 const PP_Var& service_id, | 38 const PP_Var& service_id, |
42 const PP_Var& challenge, | 39 const PP_Var& challenge, |
43 PP_Var* signed_data, | 40 PP_Var* signed_data, |
44 PP_Var* signed_data_signature, | 41 PP_Var* signed_data_signature, |
45 PP_Var* platform_key_certificate, | 42 PP_Var* platform_key_certificate, |
46 const scoped_refptr<TrackedCallback>& callback) OVERRIDE; | 43 const scoped_refptr<TrackedCallback>& callback) OVERRIDE; |
47 | |
48 void OnCanChallengePlatformReply( | |
49 PP_Bool* can_challenge_platform, | |
50 const scoped_refptr<TrackedCallback>& callback, | |
51 const ResourceMessageReplyParams& params, | |
52 bool can_challenge_platform_response); | |
53 void OnChallengePlatformReply( | 44 void OnChallengePlatformReply( |
54 ChallengePlatformParams output_params, | 45 ChallengePlatformParams output_params, |
55 const ResourceMessageReplyParams& params, | 46 const ResourceMessageReplyParams& params, |
56 const std::vector<uint8_t>& raw_signed_data, | 47 const std::vector<uint8_t>& raw_signed_data, |
57 const std::vector<uint8_t>& raw_signed_data_signature, | 48 const std::vector<uint8_t>& raw_signed_data_signature, |
58 const std::string& raw_platform_key_certificate); | 49 const std::string& raw_platform_key_certificate); |
59 | 50 |
60 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationPrivateResource); | 51 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationPrivateResource); |
61 }; | 52 }; |
62 | 53 |
63 } // namespace proxy | 54 } // namespace proxy |
64 } // namespace ppapi | 55 } // namespace ppapi |
65 | 56 |
66 #endif // PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ | 57 #endif // PPAPI_PROXY_PLATFORM_VERIFICATION_PRIVATE_RESOURCE_H_ |
OLD | NEW |