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

Side by Side Diff: webkit/plugins/ppapi/ppb_x509_certificate_private_impl.cc

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 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h"
6
7 #include "webkit/plugins/ppapi/plugin_delegate.h"
8 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
9 #include "webkit/plugins/ppapi/resource_helper.h"
10
11 namespace webkit {
12 namespace ppapi {
13
14 // static
15 PP_Resource PPB_X509Certificate_Private_Impl::CreateResource(
16 PP_Instance instance) {
17 return (new PPB_X509Certificate_Private_Impl(instance))->GetReference();
18 }
19
20 PPB_X509Certificate_Private_Impl::PPB_X509Certificate_Private_Impl(
21 PP_Instance instance) :
22 PPB_X509Certificate_Private_Shared(::ppapi::OBJECT_IS_IMPL, instance) {
23 }
24
25 bool PPB_X509Certificate_Private_Impl::ParseDER(const std::vector<char>& der,
yzshen1 2012/03/26 17:51:08 Move the parameter to a separate line.
raymes 2012/03/26 19:31:34 Done.
26 ::ppapi::PPB_X509Certificate_Fields* result) {
27 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this);
28 if (!plugin_delegate)
29 return false;
30
31 return plugin_delegate->X509CertificateParseDER(der, result);
32 }
33
34 PPB_X509Certificate_Private_Impl::~PPB_X509Certificate_Private_Impl() {
35 }
36
37 } // namespace ppapi
38 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698