| 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_server_socket_private_impl.h" | 5 #include "content/renderer/pepper/ppb_tcp_server_socket_private_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.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/ppb_tcp_socket_private_impl.h" | 10 #include "content/renderer/pepper/ppb_tcp_socket_private_impl.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 if (socket_id_ != 0) { | 80 if (socket_id_ != 0) { |
| 81 plugin_delegate->Send(new PpapiHostMsg_PPBTCPServerSocket_Destroy( | 81 plugin_delegate->Send(new PpapiHostMsg_PPBTCPServerSocket_Destroy( |
| 82 socket_id_)); | 82 socket_id_)); |
| 83 plugin_delegate->TCPServerSocketStopListening(socket_id_); | 83 plugin_delegate->TCPServerSocketStopListening(socket_id_); |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 PepperPluginDelegateImpl* | 87 PepperPluginDelegateImpl* |
| 88 PPB_TCPServerSocket_Private_Impl::GetPluginDelegate() { | 88 PPB_TCPServerSocket_Private_Impl::GetPluginDelegate() { |
| 89 return static_cast<PepperPluginDelegateImpl*>( | 89 return ResourceHelper::GetPluginDelegate(this); |
| 90 ResourceHelper::GetPluginDelegate(this)); | |
| 91 } | 90 } |
| 92 | 91 |
| 93 } // namespace content | 92 } // namespace content |
| OLD | NEW |