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

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

Issue 7687005: Create ppapi_proxy.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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> 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/shared_impl/file_ref_impl.h" 17 #include "ppapi/shared_impl/file_ref_impl.h"
17 18
18 struct PP_FileInfo; 19 struct PP_FileInfo;
19 struct PP_ObjectProperty; 20 struct PP_ObjectProperty;
20 struct PP_Flash_Menu; 21 struct PP_Flash_Menu;
21 struct PP_Flash_NetAddress; 22 struct PP_Flash_NetAddress;
22 23
23 namespace ppapi { 24 namespace ppapi {
24 25
25 class HostResource; 26 class HostResource;
(...skipping 23 matching lines...) Expand all
49 50
50 template<> 51 template<>
51 struct ParamTraits<PP_FileInfo> { 52 struct ParamTraits<PP_FileInfo> {
52 typedef PP_FileInfo param_type; 53 typedef PP_FileInfo param_type;
53 static void Write(Message* m, const param_type& p); 54 static void Write(Message* m, const param_type& p);
54 static bool Read(const Message* m, void** iter, param_type* r); 55 static bool Read(const Message* m, void** iter, param_type* r);
55 static void Log(const param_type& p, std::string* l); 56 static void Log(const param_type& p, std::string* l);
56 }; 57 };
57 58
58 template <> 59 template <>
59 struct ParamTraits<PP_Flash_NetAddress> { 60 struct PPAPI_PROXY_EXPORT ParamTraits<PP_Flash_NetAddress> {
60 typedef PP_Flash_NetAddress param_type; 61 typedef PP_Flash_NetAddress param_type;
61 static void Write(Message* m, const param_type& p); 62 static void Write(Message* m, const param_type& p);
62 static bool Read(const Message* m, void** iter, param_type* p); 63 static bool Read(const Message* m, void** iter, param_type* p);
63 static void Log(const param_type& p, std::string* l); 64 static void Log(const param_type& p, std::string* l);
64 }; 65 };
65 66
66 template<> 67 template<>
67 struct ParamTraits<PP_ObjectProperty> { 68 struct ParamTraits<PP_ObjectProperty> {
68 typedef PP_ObjectProperty param_type; 69 typedef PP_ObjectProperty param_type;
69 static void Write(Message* m, const param_type& p); 70 static void Write(Message* m, const param_type& p);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 struct ParamTraits<ppapi::proxy::SerializedFlashMenu> { 148 struct ParamTraits<ppapi::proxy::SerializedFlashMenu> {
148 typedef ppapi::proxy::SerializedFlashMenu param_type; 149 typedef ppapi::proxy::SerializedFlashMenu param_type;
149 static void Write(Message* m, const param_type& p); 150 static void Write(Message* m, const param_type& p);
150 static bool Read(const Message* m, void** iter, param_type* r); 151 static bool Read(const Message* m, void** iter, param_type* r);
151 static void Log(const param_type& p, std::string* l); 152 static void Log(const param_type& p, std::string* l);
152 }; 153 };
153 154
154 } // namespace IPC 155 } // namespace IPC
155 156
156 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 157 #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