| 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_server_socket_private_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.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" | |
| 11 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" | 10 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" |
| 12 #include "webkit/plugins/ppapi/resource_helper.h" | 11 #include "webkit/plugins/ppapi/resource_helper.h" |
| 13 | 12 |
| 14 namespace webkit { | 13 namespace webkit { |
| 15 namespace ppapi { | 14 namespace ppapi { |
| 16 | 15 |
| 17 PPB_TCPServerSocket_Private_Impl::PPB_TCPServerSocket_Private_Impl( | 16 PPB_TCPServerSocket_Private_Impl::PPB_TCPServerSocket_Private_Impl( |
| 18 PP_Instance instance) | 17 PP_Instance instance) |
| 19 : ::ppapi::PPB_TCPServerSocket_Shared(instance) { | 18 : ::ppapi::PPB_TCPServerSocket_Shared(instance) { |
| 20 } | 19 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void PPB_TCPServerSocket_Private_Impl::SendStopListening() { | 73 void PPB_TCPServerSocket_Private_Impl::SendStopListening() { |
| 75 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); | 74 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); |
| 76 if (!plugin_delegate) | 75 if (!plugin_delegate) |
| 77 return; | 76 return; |
| 78 | 77 |
| 79 plugin_delegate->TCPServerSocketStopListening(pp_resource(), socket_id_); | 78 plugin_delegate->TCPServerSocketStopListening(pp_resource(), socket_id_); |
| 80 } | 79 } |
| 81 | 80 |
| 82 } // namespace ppapi | 81 } // namespace ppapi |
| 83 } // namespace webkit | 82 } // namespace webkit |
| OLD | NEW |