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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |