OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_EXTENSIONS_DEV_SOCKET_DEV_H_ | 5 #ifndef PPAPI_CPP_EXTENSIONS_DEV_SOCKET_DEV_H_ |
6 #define PPAPI_CPP_EXTENSIONS_DEV_SOCKET_DEV_H_ | 6 #define PPAPI_CPP_EXTENSIONS_DEV_SOCKET_DEV_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" | 11 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" |
12 #include "ppapi/cpp/dev/var_dictionary_dev.h" | |
13 #include "ppapi/cpp/extensions/dict_field.h" | 12 #include "ppapi/cpp/extensions/dict_field.h" |
14 #include "ppapi/cpp/extensions/ext_output_traits.h" | 13 #include "ppapi/cpp/extensions/ext_output_traits.h" |
15 #include "ppapi/cpp/instance_handle.h" | 14 #include "ppapi/cpp/instance_handle.h" |
16 #include "ppapi/cpp/var.h" | 15 #include "ppapi/cpp/var.h" |
17 #include "ppapi/cpp/var_array_buffer.h" | 16 #include "ppapi/cpp/var_array_buffer.h" |
| 17 #include "ppapi/cpp/var_dictionary.h" |
18 | 18 |
19 namespace pp { | 19 namespace pp { |
20 namespace ext { | 20 namespace ext { |
21 | 21 |
22 template <class T> | 22 template <class T> |
23 class ExtCompletionCallbackWithOutput; | 23 class ExtCompletionCallbackWithOutput; |
24 | 24 |
25 template <class T> | 25 template <class T> |
26 class Optional; | 26 class Optional; |
27 | 27 |
(...skipping 15 matching lines...) Expand all Loading... |
43 bool Populate(const PP_Var& var_value); | 43 bool Populate(const PP_Var& var_value); |
44 | 44 |
45 Var CreateVar() const; | 45 Var CreateVar() const; |
46 | 46 |
47 ValueType value; | 47 ValueType value; |
48 | 48 |
49 static const char* const kTcp; | 49 static const char* const kTcp; |
50 static const char* const kUdp; | 50 static const char* const kUdp; |
51 }; | 51 }; |
52 | 52 |
53 typedef VarDictionary_Dev CreateOptions_Dev; | 53 typedef VarDictionary CreateOptions_Dev; |
54 | 54 |
55 class CreateInfo_Dev { | 55 class CreateInfo_Dev { |
56 public: | 56 public: |
57 CreateInfo_Dev(); | 57 CreateInfo_Dev(); |
58 ~CreateInfo_Dev(); | 58 ~CreateInfo_Dev(); |
59 | 59 |
60 bool Populate(const PP_Ext_Socket_CreateInfo_Dev& value); | 60 bool Populate(const PP_Ext_Socket_CreateInfo_Dev& value); |
61 | 61 |
62 Var CreateVar() const; | 62 Var CreateVar() const; |
63 | 63 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 private: | 282 private: |
283 InstanceHandle instance_; | 283 InstanceHandle instance_; |
284 }; | 284 }; |
285 | 285 |
286 } // namespace socket | 286 } // namespace socket |
287 } // namespace ext | 287 } // namespace ext |
288 } // namespace pp | 288 } // namespace pp |
289 | 289 |
290 #endif // PPAPI_CPP_EXTENSIONS_DEV_SOCKET_DEV_H_ | 290 #endif // PPAPI_CPP_EXTENSIONS_DEV_SOCKET_DEV_H_ |
OLD | NEW |