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

Unified Diff: content/renderer/pepper/pepper_plugin_delegate_impl.cc

Issue 9836131: Remove PPB_Flash_NetConnector and ENABLE_FLAPPER_HACKS. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_delegate_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_delegate_impl.cc b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
index 4d12e6714a4acf545a2e171a8417a1bf9fe6a6e6..feab360d1befa158572ef56c846eb1621294a23a 100644
--- a/content/renderer/pepper/pepper_plugin_delegate_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_delegate_impl.cc
@@ -58,7 +58,6 @@
#include "ppapi/c/dev/pp_video_dev.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/private/ppb_flash.h"
-#include "ppapi/c/private/ppb_flash_net_connector.h"
#include "ppapi/proxy/host_dispatcher.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/shared_impl/platform_file.h"
@@ -83,7 +82,6 @@
#include "webkit/plugins/ppapi/plugin_module.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
#include "webkit/plugins/ppapi/ppb_flash_impl.h"
-#include "webkit/plugins/ppapi/ppb_flash_net_connector_impl.h"
#include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h"
#include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h"
#include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h"
@@ -923,54 +921,6 @@ PepperPluginDelegateImpl::GetFileThreadMessageLoopProxy() {
return RenderThreadImpl::current()->GetFileThreadMessageLoopProxy();
}
-int32_t PepperPluginDelegateImpl::ConnectTcp(
- webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
- const char* host,
- uint16_t port) {
- int request_id = pending_connect_tcps_.Add(
- new scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl>(connector));
- IPC::Message* msg =
- new PepperMsg_ConnectTcp(render_view_->routing_id(),
- request_id,
- std::string(host),
- port);
- if (!render_view_->Send(msg)) {
- pending_connect_tcps_.Remove(request_id);
- return PP_ERROR_FAILED;
- }
-
- return PP_OK_COMPLETIONPENDING;
-}
-
-int32_t PepperPluginDelegateImpl::ConnectTcpAddress(
- webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
- const struct PP_NetAddress_Private* addr) {
- int request_id = pending_connect_tcps_.Add(
- new scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl>(connector));
- IPC::Message* msg =
- new PepperMsg_ConnectTcpAddress(render_view_->routing_id(),
- request_id,
- *addr);
- if (!render_view_->Send(msg)) {
- pending_connect_tcps_.Remove(request_id);
- return PP_ERROR_FAILED;
- }
-
- return PP_OK_COMPLETIONPENDING;
-}
-
-void PepperPluginDelegateImpl::OnConnectTcpACK(
- int request_id,
- base::PlatformFile socket,
- const PP_NetAddress_Private& local_addr,
- const PP_NetAddress_Private& remote_addr) {
- scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl> connector =
- *pending_connect_tcps_.Lookup(request_id);
- pending_connect_tcps_.Remove(request_id);
-
- connector->CompleteConnectTcp(socket, local_addr, remote_addr);
-}
-
uint32 PepperPluginDelegateImpl::TCPSocketCreate() {
uint32 socket_id = 0;
render_view_->Send(new PpapiHostMsg_PPBTCPSocket_Create(
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698