| 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_CPP_PRIVATE_PLATFORM_VERIFICATION_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_PLATFORM_VERIFICATION_H_ |
| 6 #define PPAPI_CPP_PRIVATE_PLATFORM_VERIFICATION_H_ | 6 #define PPAPI_CPP_PRIVATE_PLATFORM_VERIFICATION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ppapi/cpp/completion_callback.h" | 10 #include "ppapi/cpp/completion_callback.h" |
| 9 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
| 10 | 12 |
| 11 namespace pp { | 13 namespace pp { |
| 12 | 14 |
| 13 class InstanceHandle; | 15 class InstanceHandle; |
| 14 class Var; | 16 class Var; |
| 15 | 17 |
| 16 class PlatformVerification : public Resource { | 18 class PlatformVerification : public Resource { |
| 17 public: | 19 public: |
| 18 explicit PlatformVerification(const InstanceHandle& instance); | 20 explicit PlatformVerification(const InstanceHandle& instance); |
| 19 virtual ~PlatformVerification(); | 21 virtual ~PlatformVerification(); |
| 20 | 22 |
| 21 int32_t ChallengePlatform(const Var& service_id, | 23 int32_t ChallengePlatform(const Var& service_id, |
| 22 const Var& challenge, | 24 const Var& challenge, |
| 23 Var* signed_data, | 25 Var* signed_data, |
| 24 Var* signed_data_signature, | 26 Var* signed_data_signature, |
| 25 Var* platform_key_certificate, | 27 Var* platform_key_certificate, |
| 26 const CompletionCallback& callback); | 28 const CompletionCallback& callback); |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 } // namespace pp | 31 } // namespace pp |
| 30 | 32 |
| 31 #endif // PPAPI_CPP_PRIVATE_PLATFORM_VERIFICATION_H_ | 33 #endif // PPAPI_CPP_PRIVATE_PLATFORM_VERIFICATION_H_ |
| OLD | NEW |