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

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

Issue 10984094: Hook up PpapiPermissions in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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) 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/ppapi_permissions.h"
17 #include "ppapi/shared_impl/ppb_file_ref_shared.h" 18 #include "ppapi/shared_impl/ppb_file_ref_shared.h"
18 19
19 struct PP_FileInfo; 20 struct PP_FileInfo;
20 struct PP_ObjectProperty; 21 struct PP_ObjectProperty;
21 struct PP_NetAddress_Private; 22 struct PP_NetAddress_Private;
22 23
23 namespace ppapi { 24 namespace ppapi {
24 25
25 class HostResource; 26 class HostResource;
26 class PPB_X509Certificate_Fields; 27 class PPB_X509Certificate_Fields;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 150
150 template<> 151 template<>
151 struct PPAPI_PROXY_EXPORT ParamTraits< std::vector< 152 struct PPAPI_PROXY_EXPORT ParamTraits< std::vector<
152 ppapi::PPB_FileRef_CreateInfo> > { 153 ppapi::PPB_FileRef_CreateInfo> > {
153 typedef std::vector<ppapi::PPB_FileRef_CreateInfo> param_type; 154 typedef std::vector<ppapi::PPB_FileRef_CreateInfo> param_type;
154 static void Write(Message* m, const param_type& p); 155 static void Write(Message* m, const param_type& p);
155 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 156 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
156 static void Log(const param_type& p, std::string* l); 157 static void Log(const param_type& p, std::string* l);
157 }; 158 };
158 159
160 template<>
161 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PpapiPermissions> {
162 typedef ppapi::PpapiPermissions param_type;
163 static void Write(Message* m, const param_type& p);
164 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
165 static void Log(const param_type& p, std::string* l);
166 };
167
159 #if !defined(OS_NACL) && !defined(NACL_WIN64) 168 #if !defined(OS_NACL) && !defined(NACL_WIN64)
160 template<> 169 template<>
161 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> { 170 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::proxy::SerializedFlashMenu> {
162 typedef ppapi::proxy::SerializedFlashMenu param_type; 171 typedef ppapi::proxy::SerializedFlashMenu param_type;
163 static void Write(Message* m, const param_type& p); 172 static void Write(Message* m, const param_type& p);
164 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 173 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
165 static void Log(const param_type& p, std::string* l); 174 static void Log(const param_type& p, std::string* l);
166 }; 175 };
167 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 176 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
168 177
169 template<> 178 template<>
170 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> { 179 struct PPAPI_PROXY_EXPORT ParamTraits<ppapi::PPB_X509Certificate_Fields> {
171 typedef ppapi::PPB_X509Certificate_Fields param_type; 180 typedef ppapi::PPB_X509Certificate_Fields param_type;
172 static void Write(Message* m, const param_type& p); 181 static void Write(Message* m, const param_type& p);
173 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 182 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
174 static void Log(const param_type& p, std::string* l); 183 static void Log(const param_type& p, std::string* l);
175 }; 184 };
176 185
177 186
178 } // namespace IPC 187 } // namespace IPC
179 188
180 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 189 #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