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

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

Issue 20987009: Rename PepperPluginDelegateImpl to PepperHelperImpl after getting rid of the PluginDelegate interfa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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
Index: content/renderer/pepper/ppb_tcp_server_socket_private_impl.cc
===================================================================
--- content/renderer/pepper/ppb_tcp_server_socket_private_impl.cc (revision 214411)
+++ content/renderer/pepper/ppb_tcp_server_socket_private_impl.cc (working copy)
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "content/renderer/pepper/host_globals.h"
-#include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
+#include "content/renderer/pepper/pepper_helper_impl.h"
#include "content/renderer/pepper/ppb_tcp_socket_private_impl.h"
#include "content/renderer/pepper/resource_helper.h"
#include "ppapi/proxy/ppapi_messages.h"
@@ -55,38 +55,37 @@
void PPB_TCPServerSocket_Private_Impl::SendListen(
const PP_NetAddress_Private& addr,
int32_t backlog) {
- PepperPluginDelegateImpl* plugin_delegate = GetPluginDelegate();
- if (!plugin_delegate)
+ PepperHelperImpl* helper = GetHelper();
+ if (!helper)
return;
- plugin_delegate->Send(new PpapiHostMsg_PPBTCPServerSocket_Listen(
- plugin_delegate->routing_id(), 0, pp_resource(), addr, backlog));
+ helper->Send(new PpapiHostMsg_PPBTCPServerSocket_Listen(
+ helper->routing_id(), 0, pp_resource(), addr, backlog));
}
void PPB_TCPServerSocket_Private_Impl::SendAccept() {
- PepperPluginDelegateImpl* plugin_delegate = GetPluginDelegate();
- if (!plugin_delegate)
+ PepperHelperImpl* helper = GetHelper();
+ if (!helper)
return;
- plugin_delegate->Send(new PpapiHostMsg_PPBTCPServerSocket_Accept(
- plugin_delegate->routing_id(), socket_id_));
+ helper->Send(new PpapiHostMsg_PPBTCPServerSocket_Accept(
+ helper->routing_id(), socket_id_));
}
void PPB_TCPServerSocket_Private_Impl::SendStopListening() {
- PepperPluginDelegateImpl* plugin_delegate = GetPluginDelegate();
- if (!plugin_delegate)
+ PepperHelperImpl* helper = GetHelper();
+ if (!helper)
return;
if (socket_id_ != 0) {
- plugin_delegate->Send(new PpapiHostMsg_PPBTCPServerSocket_Destroy(
+ helper->Send(new PpapiHostMsg_PPBTCPServerSocket_Destroy(
socket_id_));
- plugin_delegate->TCPServerSocketStopListening(socket_id_);
+ helper->TCPServerSocketStopListening(socket_id_);
}
}
-PepperPluginDelegateImpl*
- PPB_TCPServerSocket_Private_Impl::GetPluginDelegate() {
- return ResourceHelper::GetPluginDelegate(this);
+PepperHelperImpl* PPB_TCPServerSocket_Private_Impl::GetHelper() {
+ return ResourceHelper::GetHelper(this);
}
} // namespace content
« no previous file with comments | « content/renderer/pepper/ppb_tcp_server_socket_private_impl.h ('k') | content/renderer/pepper/ppb_tcp_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698