OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TCP_SOCKET_H_ | 5 #ifndef PPAPI_CPP_TCP_SOCKET_H_ |
6 #define PPAPI_CPP_TCP_SOCKET_H_ | 6 #define PPAPI_CPP_TCP_SOCKET_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/c/ppb_tcp_socket.h" | 10 #include "ppapi/c/ppb_tcp_socket.h" |
9 #include "ppapi/cpp/net_address.h" | 11 #include "ppapi/cpp/net_address.h" |
10 #include "ppapi/cpp/pass_ref.h" | 12 #include "ppapi/cpp/pass_ref.h" |
11 #include "ppapi/cpp/resource.h" | 13 #include "ppapi/cpp/resource.h" |
12 | 14 |
13 namespace pp { | 15 namespace pp { |
14 | 16 |
15 class CompletionCallback; | 17 class CompletionCallback; |
16 class InstanceHandle; | 18 class InstanceHandle; |
17 | 19 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 /// | 205 /// |
204 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. | 206 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. |
205 int32_t SetOption(PP_TCPSocket_Option name, | 207 int32_t SetOption(PP_TCPSocket_Option name, |
206 const Var& value, | 208 const Var& value, |
207 const CompletionCallback& callback); | 209 const CompletionCallback& callback); |
208 }; | 210 }; |
209 | 211 |
210 } // namespace pp | 212 } // namespace pp |
211 | 213 |
212 #endif // PPAPI_CPP_TCP_SOCKET_H_ | 214 #endif // PPAPI_CPP_TCP_SOCKET_H_ |
OLD | NEW |