| OLD | NEW |
| 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 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" | 5 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/private/ppb_x509_certificate_private.h" | 7 #include "ppapi/c/private/ppb_x509_certificate_private.h" |
| 8 #include "ppapi/proxy/plugin_globals.h" | 8 #include "ppapi/proxy/plugin_globals.h" |
| 9 #include "ppapi/proxy/ppapi_messages.h" | 9 #include "ppapi/proxy/ppapi_messages.h" |
| 10 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" | 10 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" |
| 11 | 11 |
| 12 namespace ppapi { | 12 namespace ppapi { |
| 13 namespace proxy { | 13 namespace proxy { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 class X509CertificatePrivate : public PPB_X509Certificate_Private_Shared { | 17 class X509CertificatePrivate : public PPB_X509Certificate_Private_Shared { |
| 18 public: | 18 public: |
| 19 X509CertificatePrivate(PP_Instance instance); | 19 X509CertificatePrivate(PP_Instance instance); |
| 20 virtual ~X509CertificatePrivate(); | 20 virtual ~X509CertificatePrivate(); |
| 21 | 21 |
| 22 virtual bool ParseDER(const std::vector<char>& der, | 22 virtual bool ParseDER(const std::vector<char>& der, |
| 23 PPB_X509Certificate_Fields* result) OVERRIDE; | 23 PPB_X509Certificate_Fields* result) override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 void SendToBrowser(IPC::Message* msg); | 26 void SendToBrowser(IPC::Message* msg); |
| 27 | 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(X509CertificatePrivate); | 28 DISALLOW_COPY_AND_ASSIGN(X509CertificatePrivate); |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 X509CertificatePrivate::X509CertificatePrivate(PP_Instance instance) | 31 X509CertificatePrivate::X509CertificatePrivate(PP_Instance instance) |
| 32 : PPB_X509Certificate_Private_Shared(OBJECT_IS_PROXY, instance) { | 32 : PPB_X509Certificate_Private_Shared(OBJECT_IS_PROXY, instance) { |
| 33 } | 33 } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 return (new X509CertificatePrivate(instance))->GetReference(); | 65 return (new X509CertificatePrivate(instance))->GetReference(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool PPB_X509Certificate_Private_Proxy::OnMessageReceived( | 68 bool PPB_X509Certificate_Private_Proxy::OnMessageReceived( |
| 69 const IPC::Message& msg) { | 69 const IPC::Message& msg) { |
| 70 return false; | 70 return false; |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace proxy | 73 } // namespace proxy |
| 74 } // namespace ppapi | 74 } // namespace ppapi |
| OLD | NEW |