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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_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, 8 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
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 "content/renderer/pepper/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 void PepperPluginDelegateImpl::RemoveNetworkListObserver( 1106 void PepperPluginDelegateImpl::RemoveNetworkListObserver(
1107 webkit_glue::NetworkListObserver* observer) { 1107 webkit_glue::NetworkListObserver* observer) {
1108 #if defined(ENABLE_P2P_APIS) 1108 #if defined(ENABLE_P2P_APIS)
1109 content::P2PSocketDispatcher* socket_dispatcher = 1109 content::P2PSocketDispatcher* socket_dispatcher =
1110 render_view_->p2p_socket_dispatcher(); 1110 render_view_->p2p_socket_dispatcher();
1111 if (socket_dispatcher) 1111 if (socket_dispatcher)
1112 socket_dispatcher->RemoveNetworkListObserver(observer); 1112 socket_dispatcher->RemoveNetworkListObserver(observer);
1113 #endif 1113 #endif
1114 } 1114 }
1115 1115
1116 bool PepperPluginDelegateImpl::X509CertificateParseDER(
1117 const std::vector<char>& der,
1118 ppapi::PPB_X509Certificate_Fields* fields) {
1119 bool succeeded = false;
1120 render_view_->Send(
1121 new PpapiHostMsg_PPBX509Certificate_ParseDER(der, &succeeded, fields));
1122 return succeeded;
1123 }
1124
1116 int32_t PepperPluginDelegateImpl::ShowContextMenu( 1125 int32_t PepperPluginDelegateImpl::ShowContextMenu(
1117 webkit::ppapi::PluginInstance* instance, 1126 webkit::ppapi::PluginInstance* instance,
1118 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 1127 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
1119 const gfx::Point& position) { 1128 const gfx::Point& position) {
1120 int32 render_widget_id = render_view_->routing_id(); 1129 int32 render_widget_id = render_view_->routing_id();
1121 if (instance->FlashIsFullscreen(instance->pp_instance())) { 1130 if (instance->FlashIsFullscreen(instance->pp_instance())) {
1122 webkit::ppapi::FullscreenContainer* container = 1131 webkit::ppapi::FullscreenContainer* container =
1123 instance->fullscreen_container(); 1132 instance->fullscreen_container();
1124 DCHECK(container); 1133 DCHECK(container);
1125 render_widget_id = 1134 render_widget_id =
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); 1605 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target);
1597 delete target; 1606 delete target;
1598 mouse_lock_instances_.erase(it); 1607 mouse_lock_instances_.erase(it);
1599 } 1608 }
1600 } 1609 }
1601 1610
1602 webkit_glue::ClipboardClient* 1611 webkit_glue::ClipboardClient*
1603 PepperPluginDelegateImpl::CreateClipboardClient() const { 1612 PepperPluginDelegateImpl::CreateClipboardClient() const {
1604 return new RendererClipboardClient; 1613 return new RendererClipboardClient;
1605 } 1614 }
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | ppapi/api/private/ppb_x509_certificate_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698