| OLD | NEW |
| (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 PPB_X509Certificate_Private_Impl::PPB_X509Certificate_Private_Impl( |
| 15 PP_Instance instance) : |
| 16 PPB_X509Certificate_Private_Shared(::ppapi::OBJECT_IS_IMPL, instance) { |
| 17 } |
| 18 |
| 19 // static |
| 20 PP_Resource PPB_X509Certificate_Private_Impl::CreateResource( |
| 21 PP_Instance instance) { |
| 22 return (new PPB_X509Certificate_Private_Impl(instance))->GetReference(); |
| 23 } |
| 24 |
| 25 bool PPB_X509Certificate_Private_Impl::ParseDER( |
| 26 const std::vector<char>& der, |
| 27 ::ppapi::PPB_X509Certificate_Fields* result) { |
| 28 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); |
| 29 if (!plugin_delegate) |
| 30 return false; |
| 31 |
| 32 return plugin_delegate->X509CertificateParseDER(der, result); |
| 33 } |
| 34 |
| 35 PPB_X509Certificate_Private_Impl::~PPB_X509Certificate_Private_Impl() { |
| 36 } |
| 37 |
| 38 } // namespace ppapi |
| 39 } // namespace webkit |
| OLD | NEW |