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 <string> | |
9 #include <vector> | |
nfullagar
2011/07/02 00:16:45
curious why this is needed now?
brettw
2011/07/06 16:00:34
I think he was fixing lint errors. Thanks!
sanga
2011/07/06 16:18:59
I'm addressing some lint errors.
On 2011/07/02 00
| |
10 | |
8 #include "ipc/ipc_message_utils.h" | 11 #include "ipc/ipc_message_utils.h" |
9 #include "ipc/ipc_platform_file.h" | 12 #include "ipc/ipc_platform_file.h" |
10 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
11 #include "ppapi/c/pp_input_event.h" | 14 #include "ppapi/c/pp_input_event.h" |
12 #include "ppapi/c/pp_rect.h" | 15 #include "ppapi/c/pp_rect.h" |
13 #include "ppapi/c/pp_var.h" | 16 #include "ppapi/c/pp_var.h" |
14 | 17 |
15 struct PP_FileInfo_Dev; | 18 struct PP_FileInfo; |
16 struct PP_ObjectProperty; | 19 struct PP_ObjectProperty; |
17 struct PP_Flash_Menu; | 20 struct PP_Flash_Menu; |
18 | 21 |
19 namespace pp { | 22 namespace pp { |
20 namespace proxy { | 23 namespace proxy { |
21 | 24 |
22 class HostResource; | 25 class HostResource; |
23 struct PPBFileRef_CreateInfo; | 26 struct PPBFileRef_CreateInfo; |
24 struct PPBFlash_DrawGlyphs_Params; | 27 struct PPBFlash_DrawGlyphs_Params; |
25 struct PPBURLLoader_UpdateProgress_Params; | 28 struct PPBURLLoader_UpdateProgress_Params; |
26 struct SerializedDirEntry; | 29 struct SerializedDirEntry; |
27 struct SerializedFontDescription; | 30 struct SerializedFontDescription; |
28 class SerializedFlashMenu; | 31 class SerializedFlashMenu; |
29 class SerializedVar; | 32 class SerializedVar; |
30 | 33 |
31 } // namespace proxy | 34 } // namespace proxy |
32 } // namespace pp | 35 } // namespace pp |
33 | 36 |
34 namespace IPC { | 37 namespace IPC { |
35 | 38 |
36 template<> | 39 template<> |
37 struct ParamTraits<PP_Bool> { | 40 struct ParamTraits<PP_Bool> { |
38 typedef PP_Bool param_type; | 41 typedef PP_Bool param_type; |
39 static void Write(Message* m, const param_type& p); | 42 static void Write(Message* m, const param_type& p); |
40 static bool Read(const Message* m, void** iter, param_type* r); | 43 static bool Read(const Message* m, void** iter, param_type* r); |
41 static void Log(const param_type& p, std::string* l); | 44 static void Log(const param_type& p, std::string* l); |
42 }; | 45 }; |
43 | 46 |
44 template<> | 47 template<> |
45 struct ParamTraits<PP_FileInfo_Dev> { | 48 struct ParamTraits<PP_FileInfo> { |
46 typedef PP_FileInfo_Dev param_type; | 49 typedef PP_FileInfo param_type; |
47 static void Write(Message* m, const param_type& p); | 50 static void Write(Message* m, const param_type& p); |
48 static bool Read(const Message* m, void** iter, param_type* r); | 51 static bool Read(const Message* m, void** iter, param_type* r); |
49 static void Log(const param_type& p, std::string* l); | 52 static void Log(const param_type& p, std::string* l); |
50 }; | 53 }; |
51 | 54 |
52 template<> | 55 template<> |
53 struct ParamTraits<PP_InputEvent> { | 56 struct ParamTraits<PP_InputEvent> { |
54 typedef PP_InputEvent param_type; | 57 typedef PP_InputEvent param_type; |
55 static void Write(Message* m, const param_type& p); | 58 static void Write(Message* m, const param_type& p); |
56 static bool Read(const Message* m, void** iter, param_type* r); | 59 static bool Read(const Message* m, void** iter, param_type* r); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
141 struct ParamTraits<pp::proxy::SerializedFlashMenu> { | 144 struct ParamTraits<pp::proxy::SerializedFlashMenu> { |
142 typedef pp::proxy::SerializedFlashMenu param_type; | 145 typedef pp::proxy::SerializedFlashMenu param_type; |
143 static void Write(Message* m, const param_type& p); | 146 static void Write(Message* m, const param_type& p); |
144 static bool Read(const Message* m, void** iter, param_type* r); | 147 static bool Read(const Message* m, void** iter, param_type* r); |
145 static void Log(const param_type& p, std::string* l); | 148 static void Log(const param_type& p, std::string* l); |
146 }; | 149 }; |
147 | 150 |
148 } // namespace IPC | 151 } // namespace IPC |
149 | 152 |
150 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ | 153 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ |
OLD | NEW |