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

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

Issue 9693024: Add the PPAPI X509 Certificate interface and implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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
OLDNEW
(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
12 namespace pp {
13
14 class Var;
15
16 namespace flash {
17
18 class X509Certificate : public Resource {
19 public:
20 // Creates an is_null() object.
21 X509Certificate();
22 explicit X509Certificate(PP_Resource resource);
23 explicit X509Certificate(const InstanceHandle& instance);
24
25 // Returns true if the required interface is available.
26 static bool IsAvailable();
27
28 // Creates a new certificate from a DER-encoded representation. Returns true
29 // if the certificate was successfully created.
30 bool Initialize(const char* bytes, uint32_t length);
31 // Returns the specified field as a |Var|.
32 Var GetField(PP_Flash_X509Certificate_Field field) const;
33 };
34
35 } // namespace flash
yzshen1 2012/03/22 23:32:40 two spaces before //, please.
raymes 2012/03/26 16:05:57 Done.
36 } // namespace pp
37
38 #endif // PPAPI_CPP_PRIVATE_FLASH_X509_CERTIFICATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698