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

Side by Side Diff: webkit/plugins/ppapi/ppb_tcp_socket_private_impl.cc

Issue 17314012: Move PPB_TCPSocket out of dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 void PPB_TCPSocket_Private_Impl::SendDisconnect() { 106 void PPB_TCPSocket_Private_Impl::SendDisconnect() {
107 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this); 107 PluginDelegate* plugin_delegate = ResourceHelper::GetPluginDelegate(this);
108 if (!plugin_delegate) 108 if (!plugin_delegate)
109 return; 109 return;
110 110
111 plugin_delegate->TCPSocketDisconnect(socket_id_); 111 plugin_delegate->TCPSocketDisconnect(socket_id_);
112 } 112 }
113 113
114 void PPB_TCPSocket_Private_Impl::SendSetOption( 114 void PPB_TCPSocket_Private_Impl::SendSetOption(
115 PP_TCPSocket_Option_Dev name, 115 PP_TCPSocket_Option name,
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 PluginInstance* plugin_instance = HostGlobals::Get()->GetInstance(instance);
127 if (!plugin_instance) 127 if (!plugin_instance)
128 return NULL; 128 return NULL;
129 return plugin_instance->delegate(); 129 return plugin_instance->delegate();
130 } 130 }
131 131
132 } // namespace ppapi 132 } // namespace ppapi
133 } // namespace webkit 133 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698