| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 virtual uint32 TCPSocketCreate() OVERRIDE; | 267 virtual uint32 TCPSocketCreate() OVERRIDE; |
| 268 virtual void TCPSocketConnect( | 268 virtual void TCPSocketConnect( |
| 269 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, | 269 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, |
| 270 uint32 socket_id, | 270 uint32 socket_id, |
| 271 const std::string& host, | 271 const std::string& host, |
| 272 uint16_t port) OVERRIDE; | 272 uint16_t port) OVERRIDE; |
| 273 virtual void TCPSocketConnectWithNetAddress( | 273 virtual void TCPSocketConnectWithNetAddress( |
| 274 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, | 274 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, |
| 275 uint32 socket_id, | 275 uint32 socket_id, |
| 276 const PP_NetAddress_Private& addr) OVERRIDE; | 276 const PP_NetAddress_Private& addr) OVERRIDE; |
| 277 virtual void TCPSocketSSLHandshake(uint32 socket_id, | 277 virtual void TCPSocketSSLHandshake( |
| 278 const std::string& server_name, | 278 uint32 socket_id, |
| 279 uint16_t server_port) OVERRIDE; | 279 const std::string& server_name, |
| 280 uint16_t server_port, |
| 281 const std::vector<std::vector<char> >& trusted_certs, |
| 282 const std::vector<std::vector<char> >& untrusted_certs) OVERRIDE; |
| 280 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE; | 283 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) OVERRIDE; |
| 281 virtual void TCPSocketWrite(uint32 socket_id, | 284 virtual void TCPSocketWrite(uint32 socket_id, |
| 282 const std::string& buffer) OVERRIDE; | 285 const std::string& buffer) OVERRIDE; |
| 283 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE; | 286 virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE; |
| 284 virtual void RegisterTCPSocket( | 287 virtual void RegisterTCPSocket( |
| 285 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, | 288 webkit::ppapi::PPB_TCPSocket_Private_Impl* socket, |
| 286 uint32 socket_id) OVERRIDE; | 289 uint32 socket_id) OVERRIDE; |
| 287 | 290 |
| 288 virtual uint32 UDPSocketCreate() OVERRIDE; | 291 virtual uint32 UDPSocketCreate() OVERRIDE; |
| 289 virtual void UDPSocketBind( | 292 virtual void UDPSocketBind( |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 363 |
| 361 // RenderViewObserver implementation. | 364 // RenderViewObserver implementation. |
| 362 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 365 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 363 virtual void OnDestruct() OVERRIDE; | 366 virtual void OnDestruct() OVERRIDE; |
| 364 | 367 |
| 365 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, | 368 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, |
| 366 uint32 socket_id, | 369 uint32 socket_id, |
| 367 bool succeeded, | 370 bool succeeded, |
| 368 const PP_NetAddress_Private& local_addr, | 371 const PP_NetAddress_Private& local_addr, |
| 369 const PP_NetAddress_Private& remote_addr); | 372 const PP_NetAddress_Private& remote_addr); |
| 370 void OnTCPSocketSSLHandshakeACK(uint32 plugin_dispatcher_id, | 373 void OnTCPSocketSSLHandshakeACK( |
| 371 uint32 socket_id, | 374 uint32 plugin_dispatcher_id, |
| 372 bool succeeded); | 375 uint32 socket_id, |
| 376 bool succeeded, |
| 377 const ppapi::PPB_X509Certificate_Fields& certificate_fields); |
| 373 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id, | 378 void OnTCPSocketReadACK(uint32 plugin_dispatcher_id, |
| 374 uint32 socket_id, | 379 uint32 socket_id, |
| 375 bool succeeded, | 380 bool succeeded, |
| 376 const std::string& data); | 381 const std::string& data); |
| 377 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id, | 382 void OnTCPSocketWriteACK(uint32 plugin_dispatcher_id, |
| 378 uint32 socket_id, | 383 uint32 socket_id, |
| 379 bool succeeded, | 384 bool succeeded, |
| 380 int32_t bytes_written); | 385 int32_t bytes_written); |
| 381 void OnUDPSocketBindACK(uint32 plugin_dispatcher_id, | 386 void OnUDPSocketBindACK(uint32 plugin_dispatcher_id, |
| 382 uint32 socket_id, | 387 uint32 socket_id, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 483 |
| 479 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 484 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
| 480 | 485 |
| 481 scoped_ptr<PepperDeviceEnumerationEventHandler> | 486 scoped_ptr<PepperDeviceEnumerationEventHandler> |
| 482 device_enumeration_event_handler_; | 487 device_enumeration_event_handler_; |
| 483 | 488 |
| 484 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 489 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 485 }; | 490 }; |
| 486 | 491 |
| 487 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 492 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |