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 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 14 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
15 #include "ppapi/c/pp_bool.h" | 15 #include "ppapi/c/pp_bool.h" |
| 16 #include "ppapi/c/pp_codecs.h" |
16 #include "ppapi/c/pp_instance.h" | 17 #include "ppapi/c/pp_instance.h" |
17 #include "ppapi/c/pp_point.h" | 18 #include "ppapi/c/pp_point.h" |
18 #include "ppapi/c/pp_rect.h" | 19 #include "ppapi/c/pp_rect.h" |
19 #include "ppapi/c/ppb_network_list.h" | 20 #include "ppapi/c/ppb_network_list.h" |
20 #include "ppapi/c/private/ppb_net_address_private.h" | 21 #include "ppapi/c/private/ppb_net_address_private.h" |
21 #include "ppapi/proxy/ppapi_proxy_export.h" | 22 #include "ppapi/proxy/ppapi_proxy_export.h" |
22 #include "ppapi/shared_impl/host_resource.h" | 23 #include "ppapi/shared_impl/host_resource.h" |
23 | 24 |
24 class Pickle; | 25 class Pickle; |
25 struct PP_FontDescription_Dev; | 26 struct PP_FontDescription_Dev; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 int64_t bytes_received; | 126 int64_t bytes_received; |
126 int64_t total_bytes_to_be_received; | 127 int64_t total_bytes_to_be_received; |
127 }; | 128 }; |
128 | 129 |
129 struct PPPDecryptor_Buffer { | 130 struct PPPDecryptor_Buffer { |
130 ppapi::HostResource resource; | 131 ppapi::HostResource resource; |
131 uint32_t size; | 132 uint32_t size; |
132 base::SharedMemoryHandle handle; | 133 base::SharedMemoryHandle handle; |
133 }; | 134 }; |
134 | 135 |
| 136 struct PPB_AudioEncodeParameters { |
| 137 uint32_t channels; |
| 138 uint32_t input_sample_rate; |
| 139 uint32_t input_sample_size; |
| 140 PP_AudioProfile output_profile; |
| 141 uint32_t initial_bitrate; |
| 142 PP_HardwareAcceleration acceleration; |
| 143 }; |
| 144 |
135 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. | 145 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. |
136 #if defined(OS_WIN) | 146 #if defined(OS_WIN) |
137 typedef HANDLE ImageHandle; | 147 typedef HANDLE ImageHandle; |
138 #else | 148 #else |
139 typedef base::SharedMemoryHandle ImageHandle; | 149 typedef base::SharedMemoryHandle ImageHandle; |
140 #endif | 150 #endif |
141 | 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 |