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

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

Issue 10827280: Add PPAPI decryptor implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix yet another link error, and rebase once again. Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppp_content_decryptor_private_proxy.cc ('k') | ppapi/shared_impl/api_id.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
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 int64_t bytes_received; 94 int64_t bytes_received;
95 int64_t total_bytes_to_be_received; 95 int64_t total_bytes_to_be_received;
96 }; 96 };
97 97
98 struct PPPVideoCapture_Buffer { 98 struct PPPVideoCapture_Buffer {
99 ppapi::HostResource resource; 99 ppapi::HostResource resource;
100 uint32_t size; 100 uint32_t size;
101 base::SharedMemoryHandle handle; 101 base::SharedMemoryHandle handle;
102 }; 102 };
103 103
104 // TODO(tomfinegan): This is identical to PPPVideoCapture_Buffer, maybe replace
105 // both with a single type?
106 struct PPPDecryptor_Buffer {
107 ppapi::HostResource resource;
108 uint32_t size;
109 base::SharedMemoryHandle handle;
110 };
111
104 #if defined(OS_WIN) 112 #if defined(OS_WIN)
105 typedef HANDLE ImageHandle; 113 typedef HANDLE ImageHandle;
106 #elif defined(OS_MACOSX) || defined(OS_ANDROID) 114 #elif defined(OS_MACOSX) || defined(OS_ANDROID)
107 typedef base::SharedMemoryHandle ImageHandle; 115 typedef base::SharedMemoryHandle ImageHandle;
108 #else 116 #else
109 // On X Windows this is a SysV shared memory key. 117 // On X Windows this is a SysV shared memory key.
110 typedef int ImageHandle; 118 typedef int ImageHandle;
111 #endif 119 #endif
112 120
113 } // namespace proxy 121 } // namespace proxy
114 } // namespace ppapi 122 } // namespace ppapi
115 123
116 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ 124 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_content_decryptor_private_proxy.cc ('k') | ppapi/shared_impl/api_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698