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 PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_ | 5 #ifndef PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_ |
6 #define PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_ | 6 #define PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_ |
7 | 7 |
8 #include "ppapi/c/pp_stdint.h" | 8 #include "ppapi/c/pp_stdint.h" |
9 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 9 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
10 #include "ppapi/cpp/pass_ref.h" | 10 #include "ppapi/cpp/pass_ref.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 bool AddChainBuildingCertificate(const X509CertificatePrivate& cert, | 39 bool AddChainBuildingCertificate(const X509CertificatePrivate& cert, |
40 bool trusted); | 40 bool trusted); |
41 | 41 |
42 int32_t Read(char* buffer, | 42 int32_t Read(char* buffer, |
43 int32_t bytes_to_read, | 43 int32_t bytes_to_read, |
44 const CompletionCallback& callback); | 44 const CompletionCallback& callback); |
45 int32_t Write(const char* buffer, | 45 int32_t Write(const char* buffer, |
46 int32_t bytes_to_write, | 46 int32_t bytes_to_write, |
47 const CompletionCallback& callback); | 47 const CompletionCallback& callback); |
48 void Disconnect(); | 48 void Disconnect(); |
| 49 int32_t SetOption(PP_TCPSocketOption_Private name, |
| 50 const Var& value, |
| 51 const CompletionCallback& callback); |
49 }; | 52 }; |
50 | 53 |
51 } // namespace pp | 54 } // namespace pp |
52 | 55 |
53 #endif // PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_ | 56 #endif // PPAPI_CPP_PRIVATE_TCP_SOCKET_PRIVATE_H_ |
OLD | NEW |