| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 struct PPPDecryptor_Buffer { | 129 struct PPPDecryptor_Buffer { |
| 130 ppapi::HostResource resource; | 130 ppapi::HostResource resource; |
| 131 uint32_t size; | 131 uint32_t size; |
| 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 #elif defined(TOOLKIT_GTK) | |
| 139 // On legacy X Windows this is a SysV shared memory key. | |
| 140 typedef int ImageHandle; | |
| 141 #else | 138 #else |
| 142 typedef base::SharedMemoryHandle ImageHandle; | 139 typedef base::SharedMemoryHandle ImageHandle; |
| 143 #endif | 140 #endif |
| 144 | 141 |
| 145 } // namespace proxy | 142 } // namespace proxy |
| 146 } // namespace ppapi | 143 } // namespace ppapi |
| 147 | 144 |
| 148 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 145 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
| OLD | NEW |