Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(986)

Side by Side Diff: ppapi/proxy/ppapi_param_traits.h

Issue 7248047: Migrating PPB_FileIO_Dev, PPB_FileRef_Dev, and PPB_FileSystem_Dev dependencies to PPB_FileIO, PPB... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
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 struct PP_Flash_NetAddress; 21 struct PP_Flash_NetAddress;
19 22
20 namespace pp { 23 namespace pp {
21 namespace proxy { 24 namespace proxy {
22 25
23 class HostResource; 26 class HostResource;
24 struct PPBFileRef_CreateInfo; 27 struct PPBFileRef_CreateInfo;
25 struct PPBFlash_DrawGlyphs_Params; 28 struct PPBFlash_DrawGlyphs_Params;
(...skipping 10 matching lines...) Expand all
36 39
37 template<> 40 template<>
38 struct ParamTraits<PP_Bool> { 41 struct ParamTraits<PP_Bool> {
39 typedef PP_Bool param_type; 42 typedef PP_Bool param_type;
40 static void Write(Message* m, const param_type& p); 43 static void Write(Message* m, const param_type& p);
41 static bool Read(const Message* m, void** iter, param_type* r); 44 static bool Read(const Message* m, void** iter, param_type* r);
42 static void Log(const param_type& p, std::string* l); 45 static void Log(const param_type& p, std::string* l);
43 }; 46 };
44 47
45 template<> 48 template<>
46 struct ParamTraits<PP_FileInfo_Dev> { 49 struct ParamTraits<PP_FileInfo> {
47 typedef PP_FileInfo_Dev param_type; 50 typedef PP_FileInfo param_type;
48 static void Write(Message* m, const param_type& p); 51 static void Write(Message* m, const param_type& p);
49 static bool Read(const Message* m, void** iter, param_type* r); 52 static bool Read(const Message* m, void** iter, param_type* r);
50 static void Log(const param_type& p, std::string* l); 53 static void Log(const param_type& p, std::string* l);
51 }; 54 };
52 55
53 template <> 56 template <>
54 struct ParamTraits<PP_Flash_NetAddress> { 57 struct ParamTraits<PP_Flash_NetAddress> {
55 typedef PP_Flash_NetAddress param_type; 58 typedef PP_Flash_NetAddress param_type;
56 static void Write(Message* m, const param_type& p); 59 static void Write(Message* m, const param_type& p);
57 static bool Read(const Message* m, void** iter, param_type* p); 60 static bool Read(const Message* m, void** iter, param_type* p);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 struct ParamTraits<pp::proxy::SerializedFlashMenu> { 153 struct ParamTraits<pp::proxy::SerializedFlashMenu> {
151 typedef pp::proxy::SerializedFlashMenu param_type; 154 typedef pp::proxy::SerializedFlashMenu param_type;
152 static void Write(Message* m, const param_type& p); 155 static void Write(Message* m, const param_type& p);
153 static bool Read(const Message* m, void** iter, param_type* r); 156 static bool Read(const Message* m, void** iter, param_type* r);
154 static void Log(const param_type& p, std::string* l); 157 static void Log(const param_type& p, std::string* l);
155 }; 158 };
156 159
157 } // namespace IPC 160 } // namespace IPC
158 161
159 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 162 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698