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

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

Issue 6341015: Fix some bugs with incorrect ! (both missing and extra) in the proxy error ha... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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_internal.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 "ipc/ipc_message_utils.h" 8 #include "ipc/ipc_message_utils.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
11 #include "ppapi/c/pp_input_event.h" 11 #include "ppapi/c/pp_input_event.h"
12 #include "ppapi/c/pp_rect.h" 12 #include "ppapi/c/pp_rect.h"
13 #include "ppapi/c/pp_var.h" 13 #include "ppapi/c/pp_var.h"
14 14
15 struct PP_FileInfo_Dev; 15 struct PP_FileInfo_Dev;
16 struct PP_ObjectProperty; 16 struct PP_ObjectProperty;
17 17
18 namespace pp { 18 namespace pp {
19 namespace proxy { 19 namespace proxy {
20 20
21 struct PPBAudio_NotifyAudioStreamCreated_Params;
22 struct PPBFlash_DrawGlyphs_Params; 21 struct PPBFlash_DrawGlyphs_Params;
23 struct PPBFont_DrawTextAt_Params; 22 struct PPBFont_DrawTextAt_Params;
24 struct PPBURLLoader_UpdateProgress_Params; 23 struct PPBURLLoader_UpdateProgress_Params;
25 struct SerializedDirEntry; 24 struct SerializedDirEntry;
26 struct SerializedFontDescription; 25 struct SerializedFontDescription;
27 class HostResource; 26 class HostResource;
28 class SerializedVar; 27 class SerializedVar;
29 28
30 } // namespace proxy 29 } // namespace proxy
31 } // namespace pp 30 } // namespace pp
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 }; 80 };
82 81
83 template<> 82 template<>
84 struct ParamTraits<PP_Size> { 83 struct ParamTraits<PP_Size> {
85 typedef PP_Size param_type; 84 typedef PP_Size param_type;
86 static void Write(Message* m, const param_type& p); 85 static void Write(Message* m, const param_type& p);
87 static bool Read(const Message* m, void** iter, param_type* r); 86 static bool Read(const Message* m, void** iter, param_type* r);
88 static void Log(const param_type& p, std::string* l); 87 static void Log(const param_type& p, std::string* l);
89 }; 88 };
90 89
91 template<> struct ParamTraits<
92 pp::proxy::PPBAudio_NotifyAudioStreamCreated_Params> {
93 typedef pp::proxy::PPBAudio_NotifyAudioStreamCreated_Params param_type;
94 static void Write(Message* m, const param_type& p);
95 static bool Read(const Message* m, void** iter, param_type* r);
96 static void Log(const param_type& p, std::string* l);
97 };
98
99 template<> 90 template<>
100 struct ParamTraits<pp::proxy::PPBFlash_DrawGlyphs_Params> { 91 struct ParamTraits<pp::proxy::PPBFlash_DrawGlyphs_Params> {
101 typedef pp::proxy::PPBFlash_DrawGlyphs_Params param_type; 92 typedef pp::proxy::PPBFlash_DrawGlyphs_Params param_type;
102 static void Write(Message* m, const param_type& p); 93 static void Write(Message* m, const param_type& p);
103 static bool Read(const Message* m, void** iter, param_type* r); 94 static bool Read(const Message* m, void** iter, param_type* r);
104 static void Log(const param_type& p, std::string* l); 95 static void Log(const param_type& p, std::string* l);
105 }; 96 };
106 97
107 template<> 98 template<>
108 struct ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params> { 99 struct ParamTraits<pp::proxy::PPBFont_DrawTextAt_Params> {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 struct ParamTraits< std::vector<pp::proxy::SerializedVar> > { 147 struct ParamTraits< std::vector<pp::proxy::SerializedVar> > {
157 typedef std::vector<pp::proxy::SerializedVar> param_type; 148 typedef std::vector<pp::proxy::SerializedVar> param_type;
158 static void Write(Message* m, const param_type& p); 149 static void Write(Message* m, const param_type& p);
159 static bool Read(const Message* m, void** iter, param_type* r); 150 static bool Read(const Message* m, void** iter, param_type* r);
160 static void Log(const param_type& p, std::string* l); 151 static void Log(const param_type& p, std::string* l);
161 }; 152 };
162 153
163 } // namespace IPC 154 } // namespace IPC
164 155
165 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_ 156 #endif // PPAPI_PROXY_PPAPI_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppapi_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698