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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
537 const PP_NetAddress_Private& addr) = 0; | 537 const PP_NetAddress_Private& addr) = 0; |
538 virtual void TCPSocketSSLHandshake( | 538 virtual void TCPSocketSSLHandshake( |
539 uint32 socket_id, | 539 uint32 socket_id, |
540 const std::string& server_name, | 540 const std::string& server_name, |
541 uint16_t server_port, | 541 uint16_t server_port, |
542 const std::vector<std::vector<char> >& trusted_certs, | 542 const std::vector<std::vector<char> >& trusted_certs, |
543 const std::vector<std::vector<char> >& untrusted_certs) = 0; | 543 const std::vector<std::vector<char> >& untrusted_certs) = 0; |
544 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; | 544 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0; |
545 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; | 545 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0; |
546 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; | 546 virtual void TCPSocketDisconnect(uint32 socket_id) = 0; |
547 virtual void TCPSocketSetBoolFeature(uint32 socket_id, int32_t name, | |
yzshen1
2013/02/08 21:51:11
For function declarations and definitions, put eac
Wez
2013/02/10 04:47:02
Done.
| |
548 bool value) = 0; | |
547 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, | 549 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, |
548 uint32 socket_id) = 0; | 550 uint32 socket_id) = 0; |
549 | 551 |
550 // For PPB_TCPServerSocket_Private. | 552 // For PPB_TCPServerSocket_Private. |
551 virtual void TCPServerSocketListen(PP_Resource socket_resource, | 553 virtual void TCPServerSocketListen(PP_Resource socket_resource, |
552 const PP_NetAddress_Private& addr, | 554 const PP_NetAddress_Private& addr, |
553 int32_t backlog) = 0; | 555 int32_t backlog) = 0; |
554 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; | 556 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; |
555 virtual void TCPServerSocketStopListening( | 557 virtual void TCPServerSocketStopListening( |
556 PP_Resource socket_resource, | 558 PP_Resource socket_resource, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
657 const EnumerateDevicesCallback& callback) = 0; | 659 const EnumerateDevicesCallback& callback) = 0; |
658 // Stop enumerating devices of the specified |request_id|. The |request_id| | 660 // Stop enumerating devices of the specified |request_id|. The |request_id| |
659 // is the return value of EnumerateDevicesCallback. | 661 // is the return value of EnumerateDevicesCallback. |
660 virtual void StopEnumerateDevices(int request_id) = 0; | 662 virtual void StopEnumerateDevices(int request_id) = 0; |
661 }; | 663 }; |
662 | 664 |
663 } // namespace ppapi | 665 } // namespace ppapi |
664 } // namespace webkit | 666 } // namespace webkit |
665 | 667 |
666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 668 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |