| 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_PPAPI_PARAM_TRAITS_H_ | 5 #ifndef PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
| 6 #define PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 6 #define PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
| 7 | 7 |
| 8 #include "ipc/ipc_message_utils.h" | 8 #include "ipc/ipc_message_utils.h" |
| 9 #include "ipc/ipc_platform_file.h" | 9 #include "ipc/ipc_platform_file.h" |
| 10 #include "ppapi/c/pp_completion_callback.h" | 10 #include "ppapi/c/pp_completion_callback.h" |
| 11 #include "ppapi/c/pp_input_event.h" | 11 #include "ppapi/c/pp_input_event.h" |
| 12 #include "ppapi/c/pp_rect.h" | 12 #include "ppapi/c/pp_rect.h" |
| 13 #include "ppapi/c/pp_var.h" | 13 #include "ppapi/c/pp_var.h" |
| 14 | 14 |
| 15 struct PP_FileInfo_Dev; | 15 struct PP_FileInfo_Dev; |
| 16 struct PP_ObjectProperty; | 16 struct PP_ObjectProperty; |
| 17 | 17 |
| 18 namespace pp { | 18 namespace pp { |
| 19 namespace proxy { | 19 namespace proxy { |
| 20 | 20 |
| 21 struct PPBFileRef_CreateInfo; |
| 21 struct PPBFlash_DrawGlyphs_Params; | 22 struct PPBFlash_DrawGlyphs_Params; |
| 22 struct PPBFont_DrawTextAt_Params; | 23 struct PPBFont_DrawTextAt_Params; |
| 23 struct PPBURLLoader_UpdateProgress_Params; | 24 struct PPBURLLoader_UpdateProgress_Params; |
| 24 struct SerializedDirEntry; | 25 struct SerializedDirEntry; |
| 25 struct SerializedFontDescription; | 26 struct SerializedFontDescription; |
| 26 class HostResource; | 27 class HostResource; |
| 27 class SerializedVar; | 28 class SerializedVar; |
| 28 | 29 |
| 29 } // namespace proxy | 30 } // namespace proxy |
| 30 } // namespace pp | 31 } // namespace pp |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 90 |
| 90 template<> | 91 template<> |
| 91 struct ParamTraits<pp::proxy::PPBFlash_DrawGlyphs_Params> { | 92 struct ParamTraits<pp::proxy::PPBFlash_DrawGlyphs_Params> { |
| 92 typedef pp::proxy::PPBFlash_DrawGlyphs_Params param_type; | 93 typedef pp::proxy::PPBFlash_DrawGlyphs_Params param_type; |
| 93 static void Write(Message* m, const param_type& p); | 94 static void Write(Message* m, const param_type& p); |
| 94 static bool Read(const Message* m, void** iter, param_type* r); | 95 static bool Read(const Message* m, void** iter, param_type* r); |
| 95 static void Log(const param_type& p, std::string* l); | 96 static void Log(const param_type& p, std::string* l); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 template<> | 99 template<> |
| 100 struct ParamTraits<pp::proxy::PPBFileRef_CreateInfo> { |
| 101 typedef pp::proxy::PPBFileRef_CreateInfo param_type; |
| 102 static void Write(Message* m, const param_type& p); |
| 103 static bool Read(const Message* m, void** iter, param_type* r); |
| 104 static void Log(const param_type& p, std::string* l); |
| 105 }; |
| 106 |
| 107 template<> |
| 99 struct ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params> { | 108 struct ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params> { |
| 100 typedef pp::proxy::PPBFont_DrawTextAt_Params param_type; | 109 typedef pp::proxy::PPBFont_DrawTextAt_Params param_type; |
| 101 static void Write(Message* m, const param_type& p); | 110 static void Write(Message* m, const param_type& p); |
| 102 static bool Read(const Message* m, void** iter, param_type* r); | 111 static bool Read(const Message* m, void** iter, param_type* r); |
| 103 static void Log(const param_type& p, std::string* l); | 112 static void Log(const param_type& p, std::string* l); |
| 104 }; | 113 }; |
| 105 | 114 |
| 106 template<> | 115 template<> |
| 107 struct ParamTraits<pp::proxy::PPBURLLoader_UpdateProgress_Params> { | 116 struct ParamTraits<pp::proxy::PPBURLLoader_UpdateProgress_Params> { |
| 108 typedef pp::proxy::PPBURLLoader_UpdateProgress_Params param_type; | 117 typedef pp::proxy::PPBURLLoader_UpdateProgress_Params param_type; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 struct ParamTraits< std::vector<pp::proxy::SerializedVar> > { | 156 struct ParamTraits< std::vector<pp::proxy::SerializedVar> > { |
| 148 typedef std::vector<pp::proxy::SerializedVar> param_type; | 157 typedef std::vector<pp::proxy::SerializedVar> param_type; |
| 149 static void Write(Message* m, const param_type& p); | 158 static void Write(Message* m, const param_type& p); |
| 150 static bool Read(const Message* m, void** iter, param_type* r); | 159 static bool Read(const Message* m, void** iter, param_type* r); |
| 151 static void Log(const param_type& p, std::string* l); | 160 static void Log(const param_type& p, std::string* l); |
| 152 }; | 161 }; |
| 153 | 162 |
| 154 } // namespace IPC | 163 } // namespace IPC |
| 155 | 164 |
| 156 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 165 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
| OLD | NEW |