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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
287 uint32 socket_id, | 287 uint32 socket_id, |
288 const PP_NetAddress_Private& addr) OVERRIDE; | 288 const PP_NetAddress_Private& addr) OVERRIDE; |
289 virtual void UDPSocketRecvFrom(uint32 socket_id, | 289 virtual void UDPSocketRecvFrom(uint32 socket_id, |
290 int32_t num_bytes) OVERRIDE; | 290 int32_t num_bytes) OVERRIDE; |
291 virtual void UDPSocketSendTo(uint32 socket_id, | 291 virtual void UDPSocketSendTo(uint32 socket_id, |
292 const std::string& buffer, | 292 const std::string& buffer, |
293 const PP_NetAddress_Private& addr) OVERRIDE; | 293 const PP_NetAddress_Private& addr) OVERRIDE; |
294 virtual void UDPSocketClose(uint32 socket_id) OVERRIDE; | 294 virtual void UDPSocketClose(uint32 socket_id) OVERRIDE; |
295 virtual void TCPServerSocketListen( | 295 virtual void TCPServerSocketListen( |
296 webkit::ppapi::PPB_TCPServerSocket_Private_Impl* socket, | 296 webkit::ppapi::PPB_TCPServerSocket_Private_Impl* socket, |
297 uint32 temp_socket_id, | 297 PP_Resource socket_resource, |
298 const PP_NetAddress_Private& addr, | 298 const PP_NetAddress_Private& addr, |
299 int32_t backlog) OVERRIDE; | 299 int32_t backlog) OVERRIDE; |
300 virtual void TCPServerSocketAccept(uint32 real_socket_id) OVERRIDE; | 300 virtual void TCPServerSocketAccept(uint32 real_socket_id) OVERRIDE; |
yzshen1
2012/03/13 17:46:32
Please remove real. (There are several places in t
ygorshenin1
2012/03/14 11:36:18
Done.
| |
301 virtual void TCPServerSocketStopListening(uint32 real_socket_id, | 301 virtual void TCPServerSocketStopListening( |
302 uint32 temp_socket_id) OVERRIDE; | 302 PP_Resource socket_resource, |
303 uint32 real_socket_id) OVERRIDE; | |
303 | 304 |
304 virtual bool AddNetworkListObserver( | 305 virtual bool AddNetworkListObserver( |
305 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 306 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
306 virtual void RemoveNetworkListObserver( | 307 virtual void RemoveNetworkListObserver( |
307 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 308 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
308 | 309 |
309 virtual int32_t ShowContextMenu( | 310 virtual int32_t ShowContextMenu( |
310 webkit::ppapi::PluginInstance* instance, | 311 webkit::ppapi::PluginInstance* instance, |
311 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 312 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
312 const gfx::Point& position) OVERRIDE; | 313 const gfx::Point& position) OVERRIDE; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
378 void OnUDPSocketSendToACK(uint32 plugin_dispatcher_id, | 379 void OnUDPSocketSendToACK(uint32 plugin_dispatcher_id, |
379 uint32 socket_id, | 380 uint32 socket_id, |
380 bool succeeded, | 381 bool succeeded, |
381 int32_t bytes_written); | 382 int32_t bytes_written); |
382 void OnUDPSocketRecvFromACK(uint32 plugin_dispatcher_id, | 383 void OnUDPSocketRecvFromACK(uint32 plugin_dispatcher_id, |
383 uint32 socket_id, | 384 uint32 socket_id, |
384 bool succeeded, | 385 bool succeeded, |
385 const std::string& data, | 386 const std::string& data, |
386 const PP_NetAddress_Private& addr); | 387 const PP_NetAddress_Private& addr); |
387 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id, | 388 void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id, |
389 PP_Resource socket_resource, | |
388 uint32 real_socket_id, | 390 uint32 real_socket_id, |
389 uint32 temp_socket_id, | |
390 int32_t status); | 391 int32_t status); |
391 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id, | 392 void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id, |
392 uint32 real_server_socket_id, | 393 uint32 real_socket_id, |
393 uint32 accepted_socket_id, | 394 uint32 accepted_socket_id, |
394 const PP_NetAddress_Private& local_addr, | 395 const PP_NetAddress_Private& local_addr, |
395 const PP_NetAddress_Private& remote_addr); | 396 const PP_NetAddress_Private& remote_addr); |
396 | 397 |
397 CONTENT_EXPORT int GetRoutingID() const; | 398 CONTENT_EXPORT int GetRoutingID() const; |
398 | 399 |
399 typedef base::Callback<void (int /* request_id */, | 400 typedef base::Callback<void (int /* request_id */, |
400 bool /* succeeded */, | 401 bool /* succeeded */, |
401 const std::string& /* label */)> | 402 const std::string& /* label */)> |
402 OpenDeviceCallback; | 403 OpenDeviceCallback; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
471 | 472 |
472 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 473 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
473 | 474 |
474 scoped_ptr<PepperDeviceEnumerationEventHandler> | 475 scoped_ptr<PepperDeviceEnumerationEventHandler> |
475 device_enumeration_event_handler_; | 476 device_enumeration_event_handler_; |
476 | 477 |
477 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 478 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
478 }; | 479 }; |
479 | 480 |
480 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 481 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |