| 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_PLUGIN_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_ | 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 const std::vector<std::vector<char> >& untrusted_certs) = 0; | 287 const std::vector<std::vector<char> >& untrusted_certs) = 0; |
| 288 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; | 288 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; |
| 289 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; | 289 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; |
| 290 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; | 290 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; |
| 291 virtual void TCPSocketSetOption(uint32 socket_id, | 291 virtual void TCPSocketSetOption(uint32 socket_id, |
| 292 PP_TCPSocket_Option name, | 292 PP_TCPSocket_Option name, |
| 293 const ::ppapi::SocketOptionData& value) = 0; | 293 const ::ppapi::SocketOptionData& value) = 0; |
| 294 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, | 294 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, |
| 295 uint32 socket_id) = 0; | 295 uint32 socket_id) = 0; |
| 296 | 296 |
| 297 // For PPB_TCPServerSocket_Private. | |
| 298 virtual void TCPServerSocketListen(PP_Resource socket_resource, | |
| 299 const PP_NetAddress_Private& addr, | |
| 300 int32_t backlog) = 0; | |
| 301 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; | |
| 302 virtual void TCPServerSocketStopListening( | |
| 303 PP_Resource socket_resource, | |
| 304 uint32 socket_id) = 0; | |
| 305 | |
| 306 // For PPB_X509Certificate_Private. | 297 // For PPB_X509Certificate_Private. |
| 307 virtual bool X509CertificateParseDER( | 298 virtual bool X509CertificateParseDER( |
| 308 const std::vector<char>& der, | 299 const std::vector<char>& der, |
| 309 ::ppapi::PPB_X509Certificate_Fields* fields) = 0; | 300 ::ppapi::PPB_X509Certificate_Fields* fields) = 0; |
| 310 | 301 |
| 311 // Create a fullscreen container for a plugin instance. This effectively | 302 // Create a fullscreen container for a plugin instance. This effectively |
| 312 // switches the plugin to fullscreen. | 303 // switches the plugin to fullscreen. |
| 313 virtual FullscreenContainer* CreateFullscreenContainer( | 304 virtual FullscreenContainer* CreateFullscreenContainer( |
| 314 PepperPluginInstanceImpl* instance) = 0; | 305 PepperPluginInstanceImpl* instance) = 0; |
| 315 | 306 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 const base::FilePath& path, | 381 const base::FilePath& path, |
| 391 ::ppapi::PpapiPermissions permissions, | 382 ::ppapi::PpapiPermissions permissions, |
| 392 const IPC::ChannelHandle& channel_handle, | 383 const IPC::ChannelHandle& channel_handle, |
| 393 base::ProcessId plugin_pid, | 384 base::ProcessId plugin_pid, |
| 394 int plugin_child_id) = 0; | 385 int plugin_child_id) = 0; |
| 395 }; | 386 }; |
| 396 | 387 |
| 397 } // namespace content | 388 } // namespace content |
| 398 | 389 |
| 399 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_ | 390 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_H_ |
| OLD | NEW |