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

Side by Side Diff: chrome/common/render_messages.h

Issue 638013002: Apply automatic range checks to content enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « chrome/common/omnibox_focus_state.h ('k') | no next file » | 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) 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 // Multiply-included file, no traditional include guard. 5 // Multiply-included file, no traditional include guard.
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 }; 75 };
76 76
77 } // namespace IPC 77 } // namespace IPC
78 78
79 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 79 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
80 80
81 #define IPC_MESSAGE_START ChromeMsgStart 81 #define IPC_MESSAGE_START ChromeMsgStart
82 82
83 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value, 83 IPC_ENUM_TRAITS_MAX_VALUE(ChromeViewHostMsg_GetPluginInfo_Status::Value,
84 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized) 84 ChromeViewHostMsg_GetPluginInfo_Status::kUnauthorized)
85 IPC_ENUM_TRAITS(OmniboxFocusChangeReason) 85 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusChangeReason,
86 IPC_ENUM_TRAITS(OmniboxFocusState) 86 OMNIBOX_FOCUS_CHANGE_REASON_LAST)
87 IPC_ENUM_TRAITS_MAX_VALUE(OmniboxFocusState, OMNIBOX_FOCUS_STATE_LAST)
87 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType, 88 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType,
88 search_provider::OSDD_TYPE_LAST) 89 search_provider::OSDD_TYPE_LAST)
89 IPC_ENUM_TRAITS(search_provider::InstallState) 90 IPC_ENUM_TRAITS(search_provider::InstallState)
90 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) 91 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
91 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) 92 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
92 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level) 93 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
93 IPC_ENUM_TRAITS(content::TopControlsState) 94 IPC_ENUM_TRAITS(content::TopControlsState)
94 95
95 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) 96 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
96 IPC_STRUCT_TRAITS_MEMBER(value) 97 IPC_STRUCT_TRAITS_MEMBER(value)
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 // process so that they can be assigned to an Instant renderer. 651 // process so that they can be assigned to an Instant renderer.
651 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, 652 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
652 std::vector<GURL> /* search_urls */, 653 std::vector<GURL> /* search_urls */,
653 GURL /* new_tab_page_url */) 654 GURL /* new_tab_page_url */)
654 655
655 #if defined(ENABLE_PLUGINS) 656 #if defined(ENABLE_PLUGINS)
656 // Sent by the renderer to check if crash reporting is enabled. 657 // Sent by the renderer to check if crash reporting is enabled.
657 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, 658 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
658 bool /* enabled */) 659 bool /* enabled */)
659 #endif 660 #endif
OLDNEW
« no previous file with comments | « chrome/common/omnibox_focus_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698