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_WEBSOCKET_H_ | 5 #ifndef PPAPI_CPP_WEBSOCKET_H_ |
6 #define PPAPI_CPP_WEBSOCKET_H_ | 6 #define PPAPI_CPP_WEBSOCKET_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/c/ppb_websocket.h" | 10 #include "ppapi/c/ppb_websocket.h" |
9 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
10 | 12 |
11 /// @file | 13 /// @file |
12 /// This file defines the WebSocket interface providing bi-directional, | 14 /// This file defines the WebSocket interface providing bi-directional, |
13 /// full-duplex, communications over a single TCP socket. | 15 /// full-duplex, communications over a single TCP socket. |
14 | 16 |
15 // Windows headers will redefine SendMessage. | 17 // Windows headers will redefine SendMessage. |
16 #ifdef SendMessage | 18 #ifdef SendMessage |
17 #undef SendMessage | 19 #undef SendMessage |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 /// @return Returns a <code>Var</code> of string type. If called before the | 211 /// @return Returns a <code>Var</code> of string type. If called before the |
210 /// connection is established, the <code>Var</code> contains the empty | 212 /// connection is established, the <code>Var</code> contains the empty |
211 /// string. Returns a <code>PP_VARTYPE_UNDEFINED</code> if this function | 213 /// string. Returns a <code>PP_VARTYPE_UNDEFINED</code> if this function |
212 /// is called on an invalid resource. | 214 /// is called on an invalid resource. |
213 Var GetURL(); | 215 Var GetURL(); |
214 }; | 216 }; |
215 | 217 |
216 } // namespace pp | 218 } // namespace pp |
217 | 219 |
218 #endif // PPAPI_CPP_WEBSOCKET_H_ | 220 #endif // PPAPI_CPP_WEBSOCKET_H_ |
OLD | NEW |