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

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

Issue 1211273005: Use safer IPC serializations in media_param_traits.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up unit tests Created 5 years, 5 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/media/video_capture_messages.h ('k') | media/audio/alsa/alsa_output_unittest.cc » ('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 // 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting, 104 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::Hinting,
105 gfx::FontRenderParams::HINTING_MAX) 105 gfx::FontRenderParams::HINTING_MAX)
106 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering, 106 IPC_ENUM_TRAITS_MAX_VALUE(gfx::FontRenderParams::SubpixelRendering,
107 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX) 107 gfx::FontRenderParams::SUBPIXEL_RENDERING_MAX)
108 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy, 108 IPC_ENUM_TRAITS_MAX_VALUE(content::TapMultipleTargetsStrategy,
109 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX) 109 content::TAP_MULTIPLE_TARGETS_STRATEGY_MAX)
110 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction, 110 IPC_ENUM_TRAITS_MAX_VALUE(content::StopFindAction,
111 content::STOP_FIND_ACTION_LAST) 111 content::STOP_FIND_ACTION_LAST)
112 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType, 112 IPC_ENUM_TRAITS_MAX_VALUE(content::ThreeDAPIType,
113 content::THREE_D_API_TYPE_LAST) 113 content::THREE_D_API_TYPE_LAST)
114 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX - 1)
115 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type, 114 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaLogEvent::Type,
116 media::MediaLogEvent::TYPE_LAST) 115 media::MediaLogEvent::TYPE_LAST)
117 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX) 116 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputMode, ui::TEXT_INPUT_MODE_MAX)
118 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputType, ui::TEXT_INPUT_TYPE_MAX) 117 IPC_ENUM_TRAITS_MAX_VALUE(ui::TextInputType, ui::TEXT_INPUT_TYPE_MAX)
119 118
120 #if defined(OS_MACOSX) 119 #if defined(OS_MACOSX)
121 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay) 120 IPC_ENUM_TRAITS_MAX_VALUE(blink::ScrollerStyle, blink::ScrollerStyleOverlay)
122 121
123 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor) 122 IPC_STRUCT_TRAITS_BEGIN(FontDescriptor)
124 IPC_STRUCT_TRAITS_MEMBER(font_name) 123 IPC_STRUCT_TRAITS_MEMBER(font_name)
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 1615 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
1617 // for details. 1616 // for details.
1618 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 1617 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
1619 LOGFONT /* font_data */, 1618 LOGFONT /* font_data */,
1620 base::string16 /* characters */) 1619 base::string16 /* characters */)
1621 #endif 1620 #endif
1622 1621
1623 // Adding a new message? Stick to the sort order above: first platform 1622 // Adding a new message? Stick to the sort order above: first platform
1624 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1623 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1625 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1624 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW
« no previous file with comments | « content/common/media/video_capture_messages.h ('k') | media/audio/alsa/alsa_output_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698