Chromium Code Reviews| Index: webkit/plugins/ppapi/ppb_x509_certificate_private_impl.cc |
| diff --git a/webkit/plugins/ppapi/ppb_x509_certificate_private_impl.cc b/webkit/plugins/ppapi/ppb_x509_certificate_private_impl.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..52634e57779fb6962e9619441e731d35908536c3 |
| --- /dev/null |
| +++ b/webkit/plugins/ppapi/ppb_x509_certificate_private_impl.cc |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" |
| + |
| +#include "webkit/plugins/ppapi/plugin_delegate.h" |
| +#include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| +#include "webkit/plugins/ppapi/resource_helper.h" |
| + |
| +namespace webkit { |
| +namespace ppapi { |
| + |
| +// static |
| +PP_Resource PPB_X509Certificate_Private_Impl::CreateResource( |
| + PP_Instance instance) { |
| + return (new PPB_X509Certificate_Private_Impl(instance))->GetReference(); |
| +} |
| + |
| +PPB_X509Certificate_Private_Impl::PPB_X509Certificate_Private_Impl( |
| + PP_Instance instance) : |
| + PPB_X509Certificate_Private_Shared(::ppapi::OBJECT_IS_IMPL, instance) { |
| +} |
| + |
| +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.
|
| + ::ppapi::PPB_X509Certificate_Fields* result) { |
| + PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); |
| + if (!plugin_delegate) |
| + return false; |
| + |
| + return plugin_delegate->X509CertificateParseDER(der, result); |
| +} |
| + |
| +PPB_X509Certificate_Private_Impl::~PPB_X509Certificate_Private_Impl() { |
| +} |
| + |
| +} // namespace ppapi |
| +} // namespace webkit |