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

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

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 years 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
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 10 matching lines...) Expand all
21 #include "ipc/ipc_message_utils.h" 21 #include "ipc/ipc_message_utils.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
24 #include "webkit/blob/blob_data.h" 24 #include "webkit/blob/blob_data.h"
25 #include "webkit/glue/npruntime_util.h" 25 #include "webkit/glue/npruntime_util.h"
26 #include "webkit/glue/resource_type.h" 26 #include "webkit/glue/resource_type.h"
27 #include "webkit/glue/webcursor.h" 27 #include "webkit/glue/webcursor.h"
28 #include "webkit/glue/window_open_disposition.h" 28 #include "webkit/glue/window_open_disposition.h"
29 #include "webkit/plugins/webplugininfo.h" 29 #include "webkit/plugins/webplugininfo.h"
30 30
31 namespace webkit {
32 namespace forms {
33 struct PasswordForm;
34 }
35 }
36
31 namespace webkit_glue { 37 namespace webkit_glue {
32 struct PasswordForm;
33 struct ResourceDevToolsInfo; 38 struct ResourceDevToolsInfo;
34 struct ResourceLoadTimingInfo; 39 struct ResourceLoadTimingInfo;
35 } 40 }
36 41
37 // Define the NPVariant_Param struct and its enum here since it needs manual 42 // Define the NPVariant_Param struct and its enum here since it needs manual
38 // serialization code. 43 // serialization code.
39 enum NPVariant_ParamEnum { 44 enum NPVariant_ParamEnum {
40 NPVARIANT_PARAM_VOID, 45 NPVARIANT_PARAM_VOID,
41 NPVARIANT_PARAM_NULL, 46 NPVARIANT_PARAM_NULL,
42 NPVARIANT_PARAM_BOOL, 47 NPVARIANT_PARAM_BOOL,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 struct SimilarTypeTraits<WebKit::WebTextDirection> { 235 struct SimilarTypeTraits<WebKit::WebTextDirection> {
231 typedef int Type; 236 typedef int Type;
232 }; 237 };
233 238
234 template <> 239 template <>
235 struct SimilarTypeTraits<WindowOpenDisposition> { 240 struct SimilarTypeTraits<WindowOpenDisposition> {
236 typedef int Type; 241 typedef int Type;
237 }; 242 };
238 243
239 template <> 244 template <>
240 struct CONTENT_EXPORT ParamTraits<webkit_glue::PasswordForm> { 245 struct CONTENT_EXPORT ParamTraits<webkit::forms::PasswordForm> {
241 typedef webkit_glue::PasswordForm param_type; 246 typedef webkit::forms::PasswordForm param_type;
242 static void Write(Message* m, const param_type& p); 247 static void Write(Message* m, const param_type& p);
243 static bool Read(const Message* m, void** iter, param_type* p); 248 static bool Read(const Message* m, void** iter, param_type* p);
244 static void Log(const param_type& p, std::string* l); 249 static void Log(const param_type& p, std::string* l);
245 }; 250 };
246 251
247 } // namespace IPC 252 } // namespace IPC
248 253
249 #endif // CONTENT_PUBLIC_COMMON_WEBKIT_PARAM_TRAITS_H_ 254 #endif // CONTENT_PUBLIC_COMMON_WEBKIT_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « content/public/common/frame_navigate_params.h ('k') | content/public/common/webkit_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698