| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_CPP_PRIVATE_FLASH_X509_CERTIFICATE_H_ |
| 6 #define PPAPI_CPP_PRIVATE_FLASH_X509_CERTIFICATE_H_ |
| 7 |
| 8 #include "ppapi/c/pp_stdint.h" |
| 9 #include "ppapi/c/private/ppb_flash_x509_certificate.h" |
| 10 #include "ppapi/cpp/resource.h" |
| 11 #include "ppapi/cpp/var.h" |
| 12 |
| 13 namespace pp { |
| 14 |
| 15 class X509Certificate : public Resource { |
| 16 public: |
| 17 // Creates an is_null() object. |
| 18 X509Certificate(); |
| 19 explicit X509Certificate(PP_Resource resource); |
| 20 explicit X509Certificate(const InstanceHandle& instance); |
| 21 |
| 22 // Returns true if the required interface is available. |
| 23 static bool IsAvailable(); |
| 24 |
| 25 bool Init(const char* bytes, |
| 26 uint32_t length); |
| 27 Var GetField(PP_Flash_X509Certificate_Field field); |
| 28 }; |
| 29 |
| 30 } // namespace pp |
| 31 |
| 32 #endif // PPAPI_CPP_PRIVATE_FLASH_X509_CERTIFICATE_H_ |
| OLD | NEW |