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

Side by Side Diff: ppapi/cpp/private/x509_certificate_private.h

Issue 9699100: Add functionality to pppapi TCPSocket to support secure sockets in flash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/private/tcp_socket_private.cc ('k') | ppapi/cpp/private/x509_certificate_private.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_CPP_PRIVATE_X509_CERTIFICATE_PRIVATE_H_ 5 #ifndef PPAPI_CPP_PRIVATE_X509_CERTIFICATE_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_X509_CERTIFICATE_PRIVATE_H_ 6 #define PPAPI_CPP_PRIVATE_X509_CERTIFICATE_PRIVATE_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/private/ppb_x509_certificate_private.h" 9 #include "ppapi/c/private/ppb_x509_certificate_private.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
11 11
12 namespace pp { 12 namespace pp {
13 13
14 class Var; 14 class Var;
15 15
16 class X509Certificate : public Resource { 16 class X509CertificatePrivate : public Resource {
17 public: 17 public:
18 // Creates an is_null() object. 18 // Creates an is_null() object.
19 X509Certificate(); 19 X509CertificatePrivate();
20 explicit X509Certificate(PP_Resource resource); 20 X509CertificatePrivate(PassRef, PP_Resource resource);
21 explicit X509Certificate(const InstanceHandle& instance); 21 explicit X509CertificatePrivate(const InstanceHandle& instance);
22 22
23 // Returns true if the required interface is available. 23 // Returns true if the required interface is available.
24 static bool IsAvailable(); 24 static bool IsAvailable();
25 25
26 // Creates a new certificate from a DER-encoded representation. Returns true 26 // Creates a new certificate from a DER-encoded representation. Returns true
27 // if the certificate was successfully created. 27 // if the certificate was successfully created.
28 bool Initialize(const char* bytes, uint32_t length); 28 bool Initialize(const char* bytes, uint32_t length);
29 // Returns the specified field as a |Var|. 29 // Returns the specified field as a |Var|.
30 Var GetField(PP_X509Certificate_Private_Field field) const; 30 Var GetField(PP_X509Certificate_Private_Field field) const;
31 }; 31 };
32 32
33 } // namespace pp 33 } // namespace pp
34 34
35 #endif // PPAPI_CPP_PRIVATE_X509_CERTIFICATE_PRIVATE_H_ 35 #endif // PPAPI_CPP_PRIVATE_X509_CERTIFICATE_PRIVATE_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/private/tcp_socket_private.cc ('k') | ppapi/cpp/private/x509_certificate_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698