diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 20:14:51 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-06 20:14:51 +0000 |
commit | ce5effe4aa69ce57101824d12a3ba1b8155c9ca3 (patch) | |
tree | 8d7d44e6d4f6384df377ce41eee1ecf871ec0ac7 /content/renderer | |
parent | 990222767c6407f91804875827cdb7bb08929e9c (diff) | |
download | chromium_src-ce5effe4aa69ce57101824d12a3ba1b8155c9ca3.zip chromium_src-ce5effe4aa69ce57101824d12a3ba1b8155c9ca3.tar.gz chromium_src-ce5effe4aa69ce57101824d12a3ba1b8155c9ca3.tar.bz2 |
Don't create PepperMessageFilter for renderer processes.
PepperMessageFilter is used for PPB_NetworkMonitor and
PPB_X509Certificate. Neither of these APIs is supported for
in-process plugins.
TBR=sky@chromium.org, yzshen@chromium.org
Review URL: https://codereview.chromium.org/23997002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221764 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer')
3 files changed, 1 insertions, 72 deletions
diff --git a/content/renderer/pepper/ppb_x509_certificate_private_impl.cc b/content/renderer/pepper/ppb_x509_certificate_private_impl.cc deleted file mode 100644 index c580e71..0000000 --- a/content/renderer/pepper/ppb_x509_certificate_private_impl.cc +++ /dev/null @@ -1,35 +0,0 @@ -// 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 "content/renderer/pepper/ppb_x509_certificate_private_impl.h" - -#include "content/renderer/render_thread_impl.h" -#include "ppapi/proxy/ppapi_messages.h" - -namespace content { - -PPB_X509Certificate_Private_Impl::PPB_X509Certificate_Private_Impl( - PP_Instance instance) : - PPB_X509Certificate_Private_Shared(ppapi::OBJECT_IS_IMPL, instance) { -} - -// static -PP_Resource PPB_X509Certificate_Private_Impl::CreateResource( - PP_Instance instance) { - return (new PPB_X509Certificate_Private_Impl(instance))->GetReference(); -} - -bool PPB_X509Certificate_Private_Impl::ParseDER( - const std::vector<char>& der, - ppapi::PPB_X509Certificate_Fields* result) { - bool succeeded = false; - RenderThreadImpl::current()->Send( - new PpapiHostMsg_PPBX509Certificate_ParseDER(der, &succeeded, result)); - return succeeded; -} - -PPB_X509Certificate_Private_Impl::~PPB_X509Certificate_Private_Impl() { -} - -} // namespace content diff --git a/content/renderer/pepper/ppb_x509_certificate_private_impl.h b/content/renderer/pepper/ppb_x509_certificate_private_impl.h deleted file mode 100644 index 0f10ec0..0000000 --- a/content/renderer/pepper/ppb_x509_certificate_private_impl.h +++ /dev/null @@ -1,35 +0,0 @@ -// 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. - -#ifndef CONTENT_RENDERER_PEPPER_PPB_X509_CERTIFICATE_PRIVATE_IMPL_H_ -#define CONTENT_RENDERER_PEPPER_PPB_X509_CERTIFICATE_PRIVATE_IMPL_H_ - -#include "base/basictypes.h" -#include "base/compiler_specific.h" -#include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" -#include "ppapi/shared_impl/resource.h" - -namespace ppapi { -class PPB_X509Certificate_Fields; -} - -namespace content { - -class PPB_X509Certificate_Private_Impl : - public ppapi::PPB_X509Certificate_Private_Shared { - public: - PPB_X509Certificate_Private_Impl(PP_Instance instance); - static PP_Resource CreateResource(PP_Instance instance); - virtual bool ParseDER(const std::vector<char>& der, - ppapi::PPB_X509Certificate_Fields* result) OVERRIDE; - - private: - virtual ~PPB_X509Certificate_Private_Impl(); - - DISALLOW_COPY_AND_ASSIGN(PPB_X509Certificate_Private_Impl); -}; - -} // namespace content - -#endif // CONTENT_RENDERER_PEPPER_PPB_X509_CERTIFICATE_PRIVATE_IMPL_H_ diff --git a/content/renderer/pepper/resource_creation_impl.cc b/content/renderer/pepper/resource_creation_impl.cc index 3f25b2a..f554e410 100644 --- a/content/renderer/pepper/resource_creation_impl.cc +++ b/content/renderer/pepper/resource_creation_impl.cc @@ -14,7 +14,6 @@ #include "content/renderer/pepper/ppb_image_data_impl.h" #include "content/renderer/pepper/ppb_scrollbar_impl.h" #include "content/renderer/pepper/ppb_video_decoder_impl.h" -#include "content/renderer/pepper/ppb_x509_certificate_private_impl.h" #include "ppapi/c/pp_size.h" #include "ppapi/shared_impl/ppb_audio_config_shared.h" #include "ppapi/shared_impl/ppb_image_data_shared.h" @@ -297,7 +296,7 @@ PP_Resource ResourceCreationImpl::CreateWheelInputEvent( PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( PP_Instance instance) { - return PPB_X509Certificate_Private_Impl::CreateResource(instance); + return 0; // Not supported in-process. } } // namespace content |