| 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 |
| 11 #include "base/shared_memory.h" | 11 #include "base/shared_memory.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
| 14 #include "ppapi/c/pp_bool.h" | 14 #include "ppapi/c/pp_bool.h" |
| 15 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
| 16 #include "ppapi/c/pp_point.h" | 16 #include "ppapi/c/pp_point.h" |
| 17 #include "ppapi/c/pp_rect.h" | 17 #include "ppapi/c/pp_rect.h" |
| 18 #include "ppapi/proxy/serialized_var.h" | 18 #include "ppapi/proxy/serialized_var.h" |
| 19 #include "ppapi/shared_impl/host_resource.h" | 19 #include "ppapi/shared_impl/host_resource.h" |
| 20 | 20 |
| 21 struct PP_FontDescription_Dev; | 21 struct PP_FontDescription_Dev; |
| 22 | 22 |
| 23 namespace ppapi { | 23 namespace ppapi { |
| 24 namespace proxy { | 24 namespace proxy { |
| 25 | 25 |
| 26 class Dispatcher; | 26 class Dispatcher; |
| 27 | 27 |
| 28 // PP_FontDescript_Dev has to be redefined with a SerializedVar in place of | 28 // PP_FontDescript_Dev has to be redefined with a SerializedVar in place of |
| 29 // the PP_Var used for the face name. | 29 // the PP_Var used for the face name. |
| 30 struct SerializedFontDescription { | 30 struct PPAPI_PROXY_EXPORT SerializedFontDescription { |
| 31 SerializedFontDescription(); | 31 SerializedFontDescription(); |
| 32 ~SerializedFontDescription(); | 32 ~SerializedFontDescription(); |
| 33 | 33 |
| 34 // Converts a PP_FontDescription_Dev to a SerializedFontDescription. | 34 // Converts a PP_FontDescription_Dev to a SerializedFontDescription. |
| 35 // | 35 // |
| 36 // If source_owns_ref is true, the reference owned by the | 36 // If source_owns_ref is true, the reference owned by the |
| 37 // PP_FontDescription_Dev will be unchanged and the caller is responsible for | 37 // PP_FontDescription_Dev will be unchanged and the caller is responsible for |
| 38 // freeing it. When false, the SerializedFontDescription will take ownership | 38 // freeing it. When false, the SerializedFontDescription will take ownership |
| 39 // of the ref. This is the difference between serializing as an input value | 39 // of the ref. This is the difference between serializing as an input value |
| 40 // (owns_ref = true) and an output value (owns_ref = true). | 40 // (owns_ref = true) and an output value (owns_ref = true). |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 typedef base::SharedMemoryHandle ImageHandle; | 114 typedef base::SharedMemoryHandle ImageHandle; |
| 115 #else | 115 #else |
| 116 // On X Windows this is a SysV shared memory key. | 116 // On X Windows this is a SysV shared memory key. |
| 117 typedef int ImageHandle; | 117 typedef int ImageHandle; |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 } // namespace proxy | 120 } // namespace proxy |
| 121 } // namespace ppapi | 121 } // namespace ppapi |
| 122 | 122 |
| 123 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ | 123 #endif // PPAPI_PROXY_SERIALIZED_STRUCTS_H_ |
| OLD | NEW |