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_SHARED_IMPL_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_IMPL_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_IMPL_H_ |
6 #define PPAPI_SHARED_IMPL_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_IMPL_H_ | 6 #define PPAPI_SHARED_IMPL_PRIVATE_PPB_X509_CERTIFICATE_PRIVATE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/macros.h" | 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "ppapi/c/private/ppb_x509_certificate_private.h" | 15 #include "ppapi/c/private/ppb_x509_certificate_private.h" |
16 #include "ppapi/shared_impl/resource.h" | 16 #include "ppapi/shared_impl/resource.h" |
17 #include "ppapi/thunk/ppb_x509_certificate_private_api.h" | 17 #include "ppapi/thunk/ppb_x509_certificate_private_api.h" |
18 | 18 |
19 namespace IPC { | 19 namespace IPC { |
20 template <class T> | 20 template <class T> |
21 struct ParamTraits; | 21 struct ParamTraits; |
22 } | 22 } |
23 | 23 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 // PPB_X509Certificate_Private_API implementation. | 60 // PPB_X509Certificate_Private_API implementation. |
61 PP_Bool Initialize(const char* bytes, uint32_t length) override; | 61 PP_Bool Initialize(const char* bytes, uint32_t length) override; |
62 PP_Var GetField(PP_X509Certificate_Private_Field field) override; | 62 PP_Var GetField(PP_X509Certificate_Private_Field field) override; |
63 | 63 |
64 protected: | 64 protected: |
65 virtual bool ParseDER(const std::vector<char>& der, | 65 virtual bool ParseDER(const std::vector<char>& der, |
66 PPB_X509Certificate_Fields* result); | 66 PPB_X509Certificate_Fields* result); |
67 | 67 |
68 private: | 68 private: |
69 scoped_ptr<PPB_X509Certificate_Fields> fields_; | 69 std::unique_ptr<PPB_X509Certificate_Fields> fields_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(PPB_X509Certificate_Private_Shared); | 71 DISALLOW_COPY_AND_ASSIGN(PPB_X509Certificate_Private_Shared); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace ppapi | 74 } // namespace ppapi |
75 | 75 |
76 #endif // PPAPI_SHARED_IMPL_PRIVATE_X509_CERTIFICATE_PRIVATE_IMPL_H_ | 76 #endif // PPAPI_SHARED_IMPL_PRIVATE_X509_CERTIFICATE_PRIVATE_IMPL_H_ |
OLD | NEW |