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

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

Issue 8775063: Revert 112693 - committed before review was done - Landing 8688002: PPB_TCPSocket_Private/PPB_UDP... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:mergeinfo
Reverse-merged /branches/chrome_webkit_merge_branch/src/webkit/plugins/ppapi/mock_plugin_delegate.cc:r3734-4217,4606-5108,5177-5263
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/mock_plugin_delegate.h" 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
6 6
7 #include "base/message_loop_proxy.h" 7 #include "base/message_loop_proxy.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/shared_impl/ppapi_preferences.h" 9 #include "ppapi/shared_impl/ppapi_preferences.h"
10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 uint16_t port) { 225 uint16_t port) {
226 return PP_ERROR_FAILED; 226 return PP_ERROR_FAILED;
227 } 227 }
228 228
229 int32_t MockPluginDelegate::ConnectTcpAddress( 229 int32_t MockPluginDelegate::ConnectTcpAddress(
230 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, 230 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
231 const PP_NetAddress_Private* addr) { 231 const PP_NetAddress_Private* addr) {
232 return PP_ERROR_FAILED; 232 return PP_ERROR_FAILED;
233 } 233 }
234 234
235 uint32 MockPluginDelegate::TCPSocketCreate() {
236 return 0;
237 }
238
239 void MockPluginDelegate::TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket,
240 uint32 socket_id,
241 const std::string& host,
242 uint16_t port) {
243 }
244
245 void MockPluginDelegate::TCPSocketConnectWithNetAddress(
246 PPB_TCPSocket_Private_Impl* socket,
247 uint32 socket_id,
248 const PP_NetAddress_Private& addr) {
249 }
250
251 void MockPluginDelegate::TCPSocketSSLHandshake(uint32 socket_id,
252 const std::string& server_name,
253 uint16_t server_port) {
254 }
255
256 void MockPluginDelegate::TCPSocketRead(uint32 socket_id,
257 int32_t bytes_to_read) {
258 }
259
260 void MockPluginDelegate::TCPSocketWrite(uint32 socket_id,
261 const std::string& buffer) {
262 }
263
264 void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) {
265 }
266
267 uint32 MockPluginDelegate::UDPSocketCreate() {
268 return 0;
269 }
270
271 void MockPluginDelegate::UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
272 uint32 socket_id,
273 const PP_NetAddress_Private& addr) {
274 }
275
276 void MockPluginDelegate::UDPSocketRecvFrom(uint32 socket_id,
277 int32_t num_bytes) {
278 }
279
280 void MockPluginDelegate::UDPSocketSendTo(uint32 socket_id,
281 const std::string& buffer,
282 const PP_NetAddress_Private& addr) {
283 }
284
285 void MockPluginDelegate::UDPSocketClose(uint32 socket_id) {
286 }
287
288 int32_t MockPluginDelegate::ShowContextMenu( 235 int32_t MockPluginDelegate::ShowContextMenu(
289 PluginInstance* instance, 236 PluginInstance* instance,
290 webkit::ppapi::PPB_Flash_Menu_Impl* menu, 237 webkit::ppapi::PPB_Flash_Menu_Impl* menu,
291 const gfx::Point& position) { 238 const gfx::Point& position) {
292 return PP_ERROR_FAILED; 239 return PP_ERROR_FAILED;
293 } 240 }
294 241
295 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( 242 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer(
296 PluginInstance* instance) { 243 PluginInstance* instance) {
297 return NULL; 244 return NULL;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 306
360 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { 307 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) {
361 } 308 }
362 309
363 bool MockPluginDelegate::IsInFullscreenMode() { 310 bool MockPluginDelegate::IsInFullscreenMode() {
364 return false; 311 return false;
365 } 312 }
366 313
367 } // namespace ppapi 314 } // namespace ppapi
368 } // namespace webkit 315 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.h ('k') | webkit/plugins/ppapi/plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698