OLD | NEW |
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 Loading... |
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 |
OLD | NEW |