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

Side by Side Diff: content/common/webkit_param_traits.h

Issue 7974011: Break large blobs into multiple ipcs during creation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « content/common/webblobregistry_impl.cc ('k') | content/common/webkit_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 // This file is used to define IPC::ParamTraits<> specializations for a number 5 // This file is used to define IPC::ParamTraits<> specializations for a number
6 // of WebKit types so that they can be serialized over IPC. IPC::ParamTraits<> 6 // of WebKit types so that they can be serialized over IPC. IPC::ParamTraits<>
7 // specializations for basic types (like int and std::string) and types in the 7 // specializations for basic types (like int and std::string) and types in the
8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains 8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains
9 // specializations for types that are used by the content code, and which need 9 // specializations for types that are used by the content code, and which need
10 // manual serialization code. This is usually because they're not structs with 10 // manual serialization code. This is usually because they're not structs with
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 template <> 84 template <>
85 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > { 85 struct ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> > {
86 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type; 86 typedef scoped_refptr<webkit_glue::ResourceDevToolsInfo> param_type;
87 static void Write(Message* m, const param_type& p); 87 static void Write(Message* m, const param_type& p);
88 static bool Read(const Message* m, void** iter, param_type* r); 88 static bool Read(const Message* m, void** iter, param_type* r);
89 static void Log(const param_type& p, std::string* l); 89 static void Log(const param_type& p, std::string* l);
90 }; 90 };
91 91
92 template <> 92 template <>
93 struct ParamTraits<scoped_refptr<webkit_blob::BlobData > > {
94 typedef scoped_refptr<webkit_blob::BlobData> param_type;
95 static void Write(Message* m, const param_type& p);
96 static bool Read(const Message* m, void** iter, param_type* r);
97 static void Log(const param_type& p, std::string* l);
98 };
99
100 template <>
101 struct ParamTraits<NPVariant_Param> { 93 struct ParamTraits<NPVariant_Param> {
102 typedef NPVariant_Param param_type; 94 typedef NPVariant_Param param_type;
103 static void Write(Message* m, const param_type& p); 95 static void Write(Message* m, const param_type& p);
104 static bool Read(const Message* m, void** iter, param_type* r); 96 static bool Read(const Message* m, void** iter, param_type* r);
105 static void Log(const param_type& p, std::string* l); 97 static void Log(const param_type& p, std::string* l);
106 }; 98 };
107 99
108 template <> 100 template <>
109 struct ParamTraits<NPIdentifier_Param> { 101 struct ParamTraits<NPIdentifier_Param> {
110 typedef NPIdentifier_Param param_type; 102 typedef NPIdentifier_Param param_type;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 struct CONTENT_EXPORT ParamTraits<webkit_glue::PasswordForm> { 240 struct CONTENT_EXPORT ParamTraits<webkit_glue::PasswordForm> {
249 typedef webkit_glue::PasswordForm param_type; 241 typedef webkit_glue::PasswordForm param_type;
250 static void Write(Message* m, const param_type& p); 242 static void Write(Message* m, const param_type& p);
251 static bool Read(const Message* m, void** iter, param_type* p); 243 static bool Read(const Message* m, void** iter, param_type* p);
252 static void Log(const param_type& p, std::string* l); 244 static void Log(const param_type& p, std::string* l);
253 }; 245 };
254 246
255 } // namespace IPC 247 } // namespace IPC
256 248
257 #endif // CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_ 249 #endif // CONTENT_COMMON_WEBKIT_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « content/common/webblobregistry_impl.cc ('k') | content/common/webkit_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698