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

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

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 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
« no previous file with comments | « ppapi/shared_impl/ppb_view_shared.h ('k') | ppapi/shared_impl/resource_tracker_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 : public thunk::PPB_X509Certificate_Private_API, 42 : public thunk::PPB_X509Certificate_Private_API,
43 public Resource { 43 public Resource {
44 public: 44 public:
45 PPB_X509Certificate_Private_Shared(ResourceObjectType type, 45 PPB_X509Certificate_Private_Shared(ResourceObjectType type,
46 PP_Instance instance); 46 PP_Instance instance);
47 // Used by tcp_socket_shared_impl to construct a certificate resource from a 47 // Used by tcp_socket_shared_impl to construct a certificate resource from a
48 // server certificate. 48 // server certificate.
49 PPB_X509Certificate_Private_Shared(ResourceObjectType type, 49 PPB_X509Certificate_Private_Shared(ResourceObjectType type,
50 PP_Instance instance, 50 PP_Instance instance,
51 const PPB_X509Certificate_Fields& fields); 51 const PPB_X509Certificate_Fields& fields);
52 virtual ~PPB_X509Certificate_Private_Shared(); 52 ~PPB_X509Certificate_Private_Shared() override;
53 53
54 // Resource overrides. 54 // Resource overrides.
55 virtual PPB_X509Certificate_Private_API* 55 PPB_X509Certificate_Private_API* AsPPB_X509Certificate_Private_API() override;
56 AsPPB_X509Certificate_Private_API() override;
57 56
58 // PPB_X509Certificate_Private_API implementation. 57 // PPB_X509Certificate_Private_API implementation.
59 virtual PP_Bool Initialize(const char* bytes, uint32_t length) override; 58 PP_Bool Initialize(const char* bytes, uint32_t length) override;
60 virtual PP_Var GetField(PP_X509Certificate_Private_Field field) override; 59 PP_Var GetField(PP_X509Certificate_Private_Field field) override;
61 60
62 protected: 61 protected:
63 virtual bool ParseDER(const std::vector<char>& der, 62 virtual bool ParseDER(const std::vector<char>& der,
64 PPB_X509Certificate_Fields* result); 63 PPB_X509Certificate_Fields* result);
65 64
66 private: 65 private:
67 scoped_ptr<PPB_X509Certificate_Fields> fields_; 66 scoped_ptr<PPB_X509Certificate_Fields> fields_;
68 67
69 DISALLOW_COPY_AND_ASSIGN(PPB_X509Certificate_Private_Shared); 68 DISALLOW_COPY_AND_ASSIGN(PPB_X509Certificate_Private_Shared);
70 }; 69 };
71 70
72 } // namespace ppapi 71 } // namespace ppapi
73 72
74 #endif // PPAPI_SHARED_IMPL_PRIVATE_X509_CERTIFICATE_PRIVATE_IMPL_H_ 73 #endif // PPAPI_SHARED_IMPL_PRIVATE_X509_CERTIFICATE_PRIVATE_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_view_shared.h ('k') | ppapi/shared_impl/resource_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698