Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.h ('k') | ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698