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_PROXY_SERIALIZED_STRUCTS_H_ | 5 #ifndef PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 6 #define PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void CopyToPPTrueTypeFontDesc(PP_TrueTypeFontDesc_Dev* desc) const; | 81 void CopyToPPTrueTypeFontDesc(PP_TrueTypeFontDesc_Dev* desc) const; |
82 | 82 |
83 std::string family; | 83 std::string family; |
84 PP_TrueTypeFontFamily_Dev generic_family; | 84 PP_TrueTypeFontFamily_Dev generic_family; |
85 PP_TrueTypeFontStyle_Dev style; | 85 PP_TrueTypeFontStyle_Dev style; |
86 PP_TrueTypeFontWeight_Dev weight; | 86 PP_TrueTypeFontWeight_Dev weight; |
87 PP_TrueTypeFontWidth_Dev width; | 87 PP_TrueTypeFontWidth_Dev width; |
88 PP_TrueTypeFontCharset_Dev charset; | 88 PP_TrueTypeFontCharset_Dev charset; |
89 }; | 89 }; |
90 | 90 |
| 91 struct PPAPI_PROXY_EXPORT SerializedVpnProviderParameters { |
| 92 SerializedVpnProviderParameters(); |
| 93 ~SerializedVpnProviderParameters(); |
| 94 |
| 95 // Mandatory |
| 96 std::string address; |
| 97 std::string subnet; |
| 98 std::vector<std::string> exclusion_list; |
| 99 std::vector<std::string> inclusion_list; |
| 100 std::vector<std::string> dns_servers; |
| 101 |
| 102 // Optional |
| 103 int32_t mtu; |
| 104 std::string broadcast_address; |
| 105 std::vector<std::string> domain_search; |
| 106 }; |
| 107 |
91 struct SerializedDirEntry { | 108 struct SerializedDirEntry { |
92 std::string name; | 109 std::string name; |
93 bool is_dir; | 110 bool is_dir; |
94 }; | 111 }; |
95 | 112 |
96 struct PPAPI_PROXY_EXPORT PPBFlash_DrawGlyphs_Params { | 113 struct PPAPI_PROXY_EXPORT PPBFlash_DrawGlyphs_Params { |
97 PPBFlash_DrawGlyphs_Params(); | 114 PPBFlash_DrawGlyphs_Params(); |
98 ~PPBFlash_DrawGlyphs_Params(); | 115 ~PPBFlash_DrawGlyphs_Params(); |
99 | 116 |
100 PP_Instance instance; | 117 PP_Instance instance; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 PP_HardwareAcceleration acceleration; | 150 PP_HardwareAcceleration acceleration; |
134 }; | 151 }; |
135 | 152 |
136 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. | 153 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. |
137 typedef base::SharedMemoryHandle ImageHandle; | 154 typedef base::SharedMemoryHandle ImageHandle; |
138 | 155 |
139 } // namespace proxy | 156 } // namespace proxy |
140 } // namespace ppapi | 157 } // namespace ppapi |
141 | 158 |
142 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 159 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
OLD | NEW |