Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Side by Side Diff: ppapi/proxy/serialized_structs.h

Issue 1151973003: ppapi: implement PPB_AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Windows fixes in proxy code Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 struct PP_FontDescription_Dev; 25 struct PP_FontDescription_Dev;
25 struct PP_BrowserFont_Trusted_Description; 26 struct PP_BrowserFont_Trusted_Description;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int64_t bytes_received; 125 int64_t bytes_received;
125 int64_t total_bytes_to_be_received; 126 int64_t total_bytes_to_be_received;
126 }; 127 };
127 128
128 struct PPPDecryptor_Buffer { 129 struct PPPDecryptor_Buffer {
129 ppapi::HostResource resource; 130 ppapi::HostResource resource;
130 uint32_t size; 131 uint32_t size;
131 base::SharedMemoryHandle handle; 132 base::SharedMemoryHandle handle;
132 }; 133 };
133 134
135 struct PPB_AudioEncodeParameters {
136 uint32_t channels;
137 uint32_t input_sample_rate;
138 uint32_t input_sample_size;
139 PP_AudioProfile output_profile;
140 uint32_t initial_bitrate;
141 PP_HardwareAcceleration acceleration;
142 };
143
134 // TODO(raymes): Make ImageHandle compatible with SerializedHandle. 144 // TODO(raymes): Make ImageHandle compatible with SerializedHandle.
135 #if defined(OS_WIN) 145 #if defined(OS_WIN)
136 typedef HANDLE ImageHandle; 146 typedef HANDLE ImageHandle;
137 #else 147 #else
138 typedef base::SharedMemoryHandle ImageHandle; 148 typedef base::SharedMemoryHandle ImageHandle;
139 #endif 149 #endif
140 150
141 } // namespace proxy 151 } // namespace proxy
142 } // namespace ppapi 152 } // namespace ppapi
143 153
144 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 154 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698