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

Side by Side Diff: content/renderer/pepper/ppb_tcp_socket_private_impl.cc

Issue 21219002: Remove PluginDelegate completely. In a followup I'll rename PepperPluginDelegateImpl to something c… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 4 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/ppb_tcp_socket_private_impl.h" 5 #include "content/renderer/pepper/ppb_tcp_socket_private_impl.h"
6 6
7 #include "content/common/pepper_messages.h" 7 #include "content/common/pepper_messages.h"
8 #include "content/renderer/pepper/host_globals.h" 8 #include "content/renderer/pepper/host_globals.h"
9 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 9 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
10 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 10 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 plugin_delegate->Send(new PpapiHostMsg_PPBTCPSocket_SetOption( 131 plugin_delegate->Send(new PpapiHostMsg_PPBTCPSocket_SetOption(
132 socket_id_, name, value)); 132 socket_id_, name, value));
133 } 133 }
134 134
135 PepperPluginDelegateImpl* PPB_TCPSocket_Private_Impl::GetPluginDelegate( 135 PepperPluginDelegateImpl* PPB_TCPSocket_Private_Impl::GetPluginDelegate(
136 PP_Instance instance) { 136 PP_Instance instance) {
137 PepperPluginInstanceImpl* plugin_instance = 137 PepperPluginInstanceImpl* plugin_instance =
138 HostGlobals::Get()->GetInstance(instance); 138 HostGlobals::Get()->GetInstance(instance);
139 if (!plugin_instance) 139 if (!plugin_instance)
140 return NULL; 140 return NULL;
141 return static_cast<PepperPluginDelegateImpl*>(plugin_instance->delegate()); 141 return plugin_instance->delegate();
142 } 142 }
143 143
144 } // namespace content 144 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_tcp_server_socket_private_impl.cc ('k') | content/renderer/pepper/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698