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

Side by Side Diff: content/common/view_messages.h

Issue 601153002: [src/content] Apply automatic range checks to enum types across IPC . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review. 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 | « content/common/navigation_gesture.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 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type, 76 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPluginAction::Type,
77 blink::WebPluginAction::Type::TypeLast) 77 blink::WebPluginAction::Type::TypeLast)
78 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType, 78 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPopupType,
79 blink::WebPopupType::WebPopupTypeLast) 79 blink::WebPopupType::WebPopupTypeLast)
80 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection, 80 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebTextDirection,
81 blink::WebTextDirection::WebTextDirectionLast) 81 blink::WebTextDirection::WebTextDirectionLast)
82 IPC_ENUM_TRAITS(WindowContainerType) 82 IPC_ENUM_TRAITS(WindowContainerType)
83 IPC_ENUM_TRAITS(content::FaviconURL::IconType) 83 IPC_ENUM_TRAITS(content::FaviconURL::IconType)
84 IPC_ENUM_TRAITS(content::FileChooserParams::Mode) 84 IPC_ENUM_TRAITS(content::FileChooserParams::Mode)
85 IPC_ENUM_TRAITS(content::MenuItem::Type) 85 IPC_ENUM_TRAITS(content::MenuItem::Type)
86 IPC_ENUM_TRAITS(content::NavigationGesture) 86 IPC_ENUM_TRAITS_MAX_VALUE(content::NavigationGesture,
87 IPC_ENUM_TRAITS(content::PageZoom) 87 content::NavigationGestureLast)
88 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PageZoom,
89 content::PageZoom::PAGE_ZOOM_OUT,
90 content::PageZoom::PAGE_ZOOM_IN)
88 IPC_ENUM_TRAITS(gfx::FontRenderParams::Hinting) 91 IPC_ENUM_TRAITS(gfx::FontRenderParams::Hinting)
89 IPC_ENUM_TRAITS(gfx::FontRenderParams::SubpixelRendering) 92 IPC_ENUM_TRAITS(gfx::FontRenderParams::SubpixelRendering)
90 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, 93 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
91 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) 94 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
92 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction, 95 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction,
93 content::STOP_FIND_ACTION_LAST) 96 content::STOP_FIND_ACTION_LAST)
94 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType, 97 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType,
95 content::THREE_D_API_TYPE_LAST) 98 content::THREE_D_API_TYPE_LAST)
96 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX - 1) 99 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX - 1)
97 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type, 100 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type,
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 // Since the browser keeps handles to the allocated transport DIBs, this 1635 // Since the browser keeps handles to the allocated transport DIBs, this
1633 // message is sent to tell the browser that it may release them when the 1636 // message is sent to tell the browser that it may release them when the
1634 // renderer is finished with them. 1637 // renderer is finished with them.
1635 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, 1638 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB,
1636 TransportDIB::Id /* DIB id */) 1639 TransportDIB::Id /* DIB id */)
1637 #endif 1640 #endif
1638 1641
1639 // Adding a new message? Stick to the sort order above: first platform 1642 // Adding a new message? Stick to the sort order above: first platform
1640 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1643 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1641 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1644 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/navigation_gesture.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698