| 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 "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
| 6 | 6 |
| 7 #include "ppapi/shared_impl/socket_option_data.h" | 7 #include "ppapi/shared_impl/socket_option_data.h" |
| 8 #include "webkit/plugins/ppapi/host_globals.h" | 8 #include "webkit/plugins/ppapi/host_globals.h" |
| 9 #include "webkit/plugins/ppapi/plugin_delegate.h" | 9 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h" |
| 11 #include "webkit/plugins/ppapi/resource_helper.h" | 11 #include "webkit/plugins/ppapi/resource_helper.h" |
| 12 | 12 |
| 13 namespace webkit { | 13 namespace webkit { |
| 14 namespace ppapi { | 14 namespace ppapi { |
| 15 | 15 |
| 16 PPB_TCPSocket_Private_Impl::PPB_TCPSocket_Private_Impl( | 16 PPB_TCPSocket_Private_Impl::PPB_TCPSocket_Private_Impl( |
| 17 PP_Instance instance, uint32 socket_id) | 17 PP_Instance instance, uint32 socket_id) |
| 18 : ::ppapi::TCPSocketPrivateImpl(instance, socket_id) { | 18 : ::ppapi::TCPSocketPrivateImpl(instance, socket_id) { |
| 19 } | 19 } |
| 20 | 20 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const ::ppapi::SocketOptionData& value) { | 116 const ::ppapi::SocketOptionData& value) { |
| 117 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); | 117 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); |
| 118 if (!plugin_delegate) | 118 if (!plugin_delegate) |
| 119 return; | 119 return; |
| 120 | 120 |
| 121 plugin_delegate->TCPSocketSetOption(socket_id_, name, value); | 121 plugin_delegate->TCPSocketSetOption(socket_id_, name, value); |
| 122 } | 122 } |
| 123 | 123 |
| 124 PluginDelegate* PPB_TCPSocket_Private_Impl::GetPluginDelegate( | 124 PluginDelegate* PPB_TCPSocket_Private_Impl::GetPluginDelegate( |
| 125 PP_Instance instance) { | 125 PP_Instance instance) { |
| 126 PluginInstance* plugin_instance = HostGlobals::Get()->GetInstance(instance); | 126 PluginInstanceImpl* plugin_instance = |
| 127 HostGlobals::Get()->GetInstance(instance); |
| 127 if (!plugin_instance) | 128 if (!plugin_instance) |
| 128 return NULL; | 129 return NULL; |
| 129 return plugin_instance->delegate(); | 130 return plugin_instance->delegate(); |
| 130 } | 131 } |
| 131 | 132 |
| 132 } // namespace ppapi | 133 } // namespace ppapi |
| 133 } // namespace webkit | 134 } // namespace webkit |
| OLD | NEW |