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

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

Issue 598393002: Apply automatic range checks to /chrome 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 | « no previous file | chrome/common/search_provider.h » ('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) 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(OmniboxFocusChangeReason)
86 IPC_ENUM_TRAITS(OmniboxFocusState) 86 IPC_ENUM_TRAITS(OmniboxFocusState)
87 IPC_ENUM_TRAITS(search_provider::OSDDType) 87 IPC_ENUM_TRAITS_MAX_VALUE(search_provider::OSDDType,
88 search_provider::OSDD_TYPE_LAST)
88 IPC_ENUM_TRAITS(search_provider::InstallState) 89 IPC_ENUM_TRAITS(search_provider::InstallState)
89 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment) 90 IPC_ENUM_TRAITS(ThemeBackgroundImageAlignment)
90 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling) 91 IPC_ENUM_TRAITS(ThemeBackgroundImageTiling)
91 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level) 92 IPC_ENUM_TRAITS(blink::WebConsoleMessage::Level)
92 IPC_ENUM_TRAITS(content::TopControlsState) 93 IPC_ENUM_TRAITS(content::TopControlsState)
93 94
94 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status) 95 IPC_STRUCT_TRAITS_BEGIN(ChromeViewHostMsg_GetPluginInfo_Status)
95 IPC_STRUCT_TRAITS_MEMBER(value) 96 IPC_STRUCT_TRAITS_MEMBER(value)
96 IPC_STRUCT_TRAITS_END() 97 IPC_STRUCT_TRAITS_END()
97 98
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 // process so that they can be assigned to an Instant renderer. 650 // process so that they can be assigned to an Instant renderer.
650 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs, 651 IPC_MESSAGE_CONTROL2(ChromeViewMsg_SetSearchURLs,
651 std::vector<GURL> /* search_urls */, 652 std::vector<GURL> /* search_urls */,
652 GURL /* new_tab_page_url */) 653 GURL /* new_tab_page_url */)
653 654
654 #if defined(ENABLE_PLUGINS) 655 #if defined(ENABLE_PLUGINS)
655 // Sent by the renderer to check if crash reporting is enabled. 656 // Sent by the renderer to check if crash reporting is enabled.
656 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, 657 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled,
657 bool /* enabled */) 658 bool /* enabled */)
658 #endif 659 #endif
OLDNEW
« no previous file with comments | « no previous file | chrome/common/search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698