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

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, 9 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 <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 void PepperPluginDelegateImpl::RemoveNetworkListObserver( 1108 void PepperPluginDelegateImpl::RemoveNetworkListObserver(
1109 webkit_glue::NetworkListObserver* observer) { 1109 webkit_glue::NetworkListObserver* observer) {
1110 #if defined(ENABLE_P2P_APIS) 1110 #if defined(ENABLE_P2P_APIS)
1111 content::P2PSocketDispatcher* socket_dispatcher = 1111 content::P2PSocketDispatcher* socket_dispatcher =
1112 render_view_->p2p_socket_dispatcher(); 1112 render_view_->p2p_socket_dispatcher();
1113 if (socket_dispatcher) 1113 if (socket_dispatcher)
1114 socket_dispatcher->RemoveNetworkListObserver(observer); 1114 socket_dispatcher->RemoveNetworkListObserver(observer);
1115 #endif 1115 #endif
1116 } 1116 }
1117 1117
1118 bool PepperPluginDelegateImpl::X509CertificateParseDER(
1119 const std::vector<char>& der,
1120 ppapi::PPB_X509Certificate_Fields* fields) {
1121 bool succeeded = false;
1122 render_view_->Send(
1123 new PpapiHostMsg_PPBX509Certificate_ParseDER(der, &succeeded, fields));
1124 return succeeded;
1125 }
1126
1118 int32_t PepperPluginDelegateImpl::ShowContextMenu( 1127 int32_t PepperPluginDelegateImpl::ShowContextMenu(
1119 webkit::ppapi::PluginInstance* instance, 1128 webkit::ppapi::PluginInstance* instance,
1120 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 1129 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
1121 const gfx::Point& position) { 1130 const gfx::Point& position) {
1122 int32 render_widget_id = render_view_->routing_id(); 1131 int32 render_widget_id = render_view_->routing_id();
1123 if (instance->FlashIsFullscreen(instance->pp_instance())) { 1132 if (instance->FlashIsFullscreen(instance->pp_instance())) {
1124 webkit::ppapi::FullscreenContainer* container = 1133 webkit::ppapi::FullscreenContainer* container =
1125 instance->fullscreen_container(); 1134 instance->fullscreen_container();
1126 DCHECK(container); 1135 DCHECK(container);
1127 render_widget_id = 1136 render_widget_id =
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target); 1591 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(target);
1583 delete target; 1592 delete target;
1584 mouse_lock_instances_.erase(it); 1593 mouse_lock_instances_.erase(it);
1585 } 1594 }
1586 } 1595 }
1587 1596
1588 webkit_glue::ClipboardClient* 1597 webkit_glue::ClipboardClient*
1589 PepperPluginDelegateImpl::CreateClipboardClient() const { 1598 PepperPluginDelegateImpl::CreateClipboardClient() const {
1590 return new RendererClipboardClient; 1599 return new RendererClipboardClient;
1591 } 1600 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698