| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 struct PPBURLLoader_UpdateProgress_Params { | 107 struct PPBURLLoader_UpdateProgress_Params { |
| 108 PP_Instance instance; | 108 PP_Instance instance; |
| 109 pp::proxy::HostResource resource; | 109 pp::proxy::HostResource resource; |
| 110 int64_t bytes_sent; | 110 int64_t bytes_sent; |
| 111 int64_t total_bytes_to_be_sent; | 111 int64_t total_bytes_to_be_sent; |
| 112 int64_t bytes_received; | 112 int64_t bytes_received; |
| 113 int64_t total_bytes_to_be_received; | 113 int64_t total_bytes_to_be_received; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 struct PPPVideoCapture_Buffer { |
| 117 pp::proxy::HostResource resource; |
| 118 uint32_t size; |
| 119 base::SharedMemoryHandle handle; |
| 120 }; |
| 121 |
| 116 #if defined(OS_WIN) | 122 #if defined(OS_WIN) |
| 117 typedef HANDLE ImageHandle; | 123 typedef HANDLE ImageHandle; |
| 118 #elif defined(OS_MACOSX) | 124 #elif defined(OS_MACOSX) |
| 119 typedef base::SharedMemoryHandle ImageHandle; | 125 typedef base::SharedMemoryHandle ImageHandle; |
| 120 #else | 126 #else |
| 121 // On X Windows this is a SysV shared memory key. | 127 // On X Windows this is a SysV shared memory key. |
| 122 typedef int ImageHandle; | 128 typedef int ImageHandle; |
| 123 #endif | 129 #endif |
| 124 | 130 |
| 125 } // namespace proxy | 131 } // namespace proxy |
| 126 } // namespace pp | 132 } // namespace pp |
| 127 | 133 |
| 128 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 134 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
| OLD | NEW |