OLD | NEW |
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_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
10 | 10 |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/public/common/request_context_frame_type.h" |
| 13 #include "content/public/common/request_context_type.h" |
12 #include "content/public/common/resource_type.h" | 14 #include "content/public/common/resource_type.h" |
13 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
14 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" | 16 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" |
15 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" | 17 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" |
16 #include "third_party/WebKit/public/web/WebInputEvent.h" | 18 #include "third_party/WebKit/public/web/WebInputEvent.h" |
17 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 19 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
18 | 20 |
19 #undef IPC_MESSAGE_EXPORT | 21 #undef IPC_MESSAGE_EXPORT |
20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
21 | 23 |
22 IPC_ENUM_TRAITS_MAX_VALUE(content::ResourceType, | 24 IPC_ENUM_TRAITS_MAX_VALUE(content::ResourceType, |
23 content::RESOURCE_TYPE_LAST_TYPE - 1) | 25 content::RESOURCE_TYPE_LAST_TYPE - 1) |
| 26 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextType, |
| 27 content::REQUEST_CONTEXT_TYPE_LAST) |
| 28 IPC_ENUM_TRAITS_MAX_VALUE(content::RequestContextFrameType, |
| 29 content::REQUEST_CONTEXT_FRAME_TYPE_LAST) |
24 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType, | 30 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType, |
25 blink::WebContentSecurityPolicyTypeLast) | 31 blink::WebContentSecurityPolicyTypeLast) |
26 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type, | 32 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type, |
27 blink::WebInputEvent::TypeFirst, | 33 blink::WebInputEvent::TypeFirst, |
28 blink::WebInputEvent::TypeLast) | 34 blink::WebInputEvent::TypeLast) |
29 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState, | 35 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState, |
30 blink::WebPageVisibilityStateLast) | 36 blink::WebPageVisibilityStateLast) |
31 | 37 |
32 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline) | 38 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline) |
33 IPC_STRUCT_TRAITS_MEMBER(startOffset) | 39 IPC_STRUCT_TRAITS_MEMBER(startOffset) |
34 IPC_STRUCT_TRAITS_MEMBER(endOffset) | 40 IPC_STRUCT_TRAITS_MEMBER(endOffset) |
35 IPC_STRUCT_TRAITS_MEMBER(color) | 41 IPC_STRUCT_TRAITS_MEMBER(color) |
36 IPC_STRUCT_TRAITS_MEMBER(thick) | 42 IPC_STRUCT_TRAITS_MEMBER(thick) |
37 IPC_STRUCT_TRAITS_MEMBER(backgroundColor) | 43 IPC_STRUCT_TRAITS_MEMBER(backgroundColor) |
38 IPC_STRUCT_TRAITS_END() | 44 IPC_STRUCT_TRAITS_END() |
39 | 45 |
40 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ | 46 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |