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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 base::SharedMemoryHandle handle; | 132 base::SharedMemoryHandle handle; |
133 }; | 133 }; |
134 | 134 |
135 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. | 135 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. |
136 #if defined(OS_WIN) | 136 #if defined(OS_WIN) |
137 typedef HANDLE ImageHandle; | 137 typedef HANDLE ImageHandle; |
138 #else | 138 #else |
139 typedef base::SharedMemoryHandle ImageHandle; | 139 typedef base::SharedMemoryHandle ImageHandle; |
140 #endif | 140 #endif |
141 | 141 |
| 142 struct CompletedBrowserResourceHosts { |
| 143 CompletedBrowserResourceHosts() : sequence_id(0) {} |
| 144 CompletedBrowserResourceHosts(int sequence_id_param, |
| 145 const std::vector<int>& host_ids_param) |
| 146 : sequence_id(sequence_id_param), host_ids(host_ids_param) { |
| 147 } |
| 148 int sequence_id; |
| 149 std::vector<int> host_ids; |
| 150 }; |
| 151 |
142 } // namespace proxy | 152 } // namespace proxy |
143 } // namespace ppapi | 153 } // namespace ppapi |
144 | 154 |
145 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 155 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
OLD | NEW |