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

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

Issue 10980010: Cleanup the IPC param traits structure (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android 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
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 // Singly or Multiply-included shared traits file depending on circumstances. 5 // Singly or Multiply-included shared traits file depending on circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message 6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file. 7 // file.
8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 8 #ifndef CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 9 #define CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
10 10
11 #include "content/public/common/console_message_level.h" 11 #include "content/public/common/console_message_level.h"
12 #include "content/public/common/page_transition_types.h"
13 #include "content/public/common/security_style.h" 12 #include "content/public/common/security_style.h"
14 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h " 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h "
16 #include "webkit/glue/resource_type.h" 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
17 #include "webkit/forms/password_form.h"
18 #include "webkit/glue/window_open_disposition.h"
19 #include "webkit/plugins/webplugininfo.h"
17 20
18 #undef IPC_MESSAGE_EXPORT 21 #undef IPC_MESSAGE_EXPORT
19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
20 23
21 IPC_ENUM_TRAITS(content::ConsoleMessageLevel) 24 IPC_ENUM_TRAITS(content::ConsoleMessageLevel)
22 IPC_ENUM_TRAITS(content::PageTransition)
23 IPC_ENUM_TRAITS(content::SecurityStyle) 25 IPC_ENUM_TRAITS(content::SecurityStyle)
24 IPC_ENUM_TRAITS(ResourceType::Type)
25 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy) 26 IPC_ENUM_TRAITS(WebKit::WebReferrerPolicy)
27 IPC_ENUM_TRAITS(WindowOpenDisposition)
28
29 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebPoint)
30 IPC_STRUCT_TRAITS_MEMBER(x)
31 IPC_STRUCT_TRAITS_MEMBER(y)
32 IPC_STRUCT_TRAITS_END()
33
34 IPC_STRUCT_TRAITS_BEGIN(WebKit::WebRect)
35 IPC_STRUCT_TRAITS_MEMBER(x)
36 IPC_STRUCT_TRAITS_MEMBER(y)
37 IPC_STRUCT_TRAITS_MEMBER(width)
38 IPC_STRUCT_TRAITS_MEMBER(height)
39 IPC_STRUCT_TRAITS_END()
40
41 IPC_STRUCT_TRAITS_BEGIN(webkit::forms::PasswordForm)
42 IPC_STRUCT_TRAITS_MEMBER(signon_realm)
43 IPC_STRUCT_TRAITS_MEMBER(origin)
44 IPC_STRUCT_TRAITS_MEMBER(action)
45 IPC_STRUCT_TRAITS_MEMBER(submit_element)
46 IPC_STRUCT_TRAITS_MEMBER(username_element)
47 IPC_STRUCT_TRAITS_MEMBER(username_value)
48 IPC_STRUCT_TRAITS_MEMBER(password_element)
49 IPC_STRUCT_TRAITS_MEMBER(password_value)
50 IPC_STRUCT_TRAITS_MEMBER(old_password_element)
51 IPC_STRUCT_TRAITS_MEMBER(old_password_value)
52 IPC_STRUCT_TRAITS_MEMBER(ssl_valid)
53 IPC_STRUCT_TRAITS_MEMBER(preferred)
54 IPC_STRUCT_TRAITS_MEMBER(blacklisted_by_user)
55 IPC_STRUCT_TRAITS_END()
56
57 IPC_STRUCT_TRAITS_BEGIN(webkit::WebPluginMimeType)
58 IPC_STRUCT_TRAITS_MEMBER(mime_type)
59 IPC_STRUCT_TRAITS_MEMBER(file_extensions)
60 IPC_STRUCT_TRAITS_MEMBER(description)
61 IPC_STRUCT_TRAITS_MEMBER(additional_param_names)
62 IPC_STRUCT_TRAITS_MEMBER(additional_param_values)
63 IPC_STRUCT_TRAITS_END()
64
65 IPC_STRUCT_TRAITS_BEGIN(webkit::WebPluginInfo)
66 IPC_STRUCT_TRAITS_MEMBER(name)
67 IPC_STRUCT_TRAITS_MEMBER(path)
68 IPC_STRUCT_TRAITS_MEMBER(version)
69 IPC_STRUCT_TRAITS_MEMBER(desc)
70 IPC_STRUCT_TRAITS_MEMBER(mime_types)
71 IPC_STRUCT_TRAITS_MEMBER(type)
72 IPC_STRUCT_TRAITS_END()
26 73
27 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_ 74 #endif // CONTENT_PUBLIC_COMMON_COMMON_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits.cc ('k') | content/public/common/webkit_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698