| 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_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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ipc/ipc_message_utils.h" | 11 #include "ipc/ipc_message_utils.h" |
| 12 #include "ipc/ipc_platform_file.h" | 12 #include "ipc/ipc_platform_file.h" |
| 13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
| 14 #include "ppapi/c/pp_rect.h" | 14 #include "ppapi/c/pp_rect.h" |
| 15 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
| 16 #include "ppapi/proxy/ppapi_proxy_export.h" | 16 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 17 #include "ppapi/shared_impl/ppb_file_ref_shared.h" | 17 #include "ppapi/shared_impl/ppb_file_ref_shared.h" |
| 18 | 18 |
| 19 struct PP_FileInfo; | 19 struct PP_FileInfo; |
| 20 struct PP_ObjectProperty; | 20 struct PP_ObjectProperty; |
| 21 struct PP_NetAddress_Private; | 21 struct PP_NetAddress_Private; |
| 22 | 22 |
| 23 namespace ppapi { | 23 namespace ppapi { |
| 24 | 24 |
| 25 class PPB_X509Certificate_Fields; |
| 25 class HostResource; | 26 class HostResource; |
| 26 | 27 |
| 27 namespace proxy { | 28 namespace proxy { |
| 28 | 29 |
| 29 struct PPBFlash_DrawGlyphs_Params; | 30 struct PPBFlash_DrawGlyphs_Params; |
| 30 struct PPBURLLoader_UpdateProgress_Params; | 31 struct PPBURLLoader_UpdateProgress_Params; |
| 31 struct SerializedDirEntry; | 32 struct SerializedDirEntry; |
| 32 struct SerializedFontDescription; | 33 struct SerializedFontDescription; |
| 33 class SerializedFlashMenu; | 34 class SerializedFlashMenu; |
| 34 class SerializedVar; | 35 class SerializedVar; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 template<> | 146 template<> |
| 146 struct ParamTraits<ppapi::proxy::SerializedFlashMenu> { | 147 struct ParamTraits<ppapi::proxy::SerializedFlashMenu> { |
| 147 typedef ppapi::proxy::SerializedFlashMenu param_type; | 148 typedef ppapi::proxy::SerializedFlashMenu param_type; |
| 148 static void Write(Message* m, const param_type& p); | 149 static void Write(Message* m, const param_type& p); |
| 149 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 150 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 150 static void Log(const param_type& p, std::string* l); | 151 static void Log(const param_type& p, std::string* l); |
| 151 }; | 152 }; |
| 152 | 153 |
| 154 template<> |
| 155 struct ParamTraits<ppapi::PPB_X509Certificate_Fields> { |
| 156 typedef ppapi::PPB_X509Certificate_Fields param_type; |
| 157 static void Write(Message* m, const param_type& p); |
| 158 static bool Read(const Message* m, void** iter, param_type* r); |
| 159 static void Log(const param_type& p, std::string* l); |
| 160 }; |
| 161 |
| 153 } // namespace IPC | 162 } // namespace IPC |
| 154 | 163 |
| 155 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 164 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
| OLD | NEW |