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

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

Issue 1619363002: Add compile time checks against longs being used in IPC structs on 32 bit Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more per Dmitry Created 4 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 interacting with frames. 5 // IPC messages for interacting with frames.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 // Notifies the color chooser client that the color chooser has ended. 721 // Notifies the color chooser client that the color chooser has ended.
722 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) 722 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned)
723 723
724 // Notifies the corresponding RenderFrameProxy object to replace itself with the 724 // Notifies the corresponding RenderFrameProxy object to replace itself with the
725 // RenderFrame object it is associated with. 725 // RenderFrame object it is associated with.
726 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy) 726 IPC_MESSAGE_ROUTED0(FrameMsg_DeleteProxy)
727 727
728 // Request the text surrounding the selection with a |max_length|. The response 728 // Request the text surrounding the selection with a |max_length|. The response
729 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse. 729 // will be sent via FrameHostMsg_TextSurroundingSelectionResponse.
730 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest, 730 IPC_MESSAGE_ROUTED1(FrameMsg_TextSurroundingSelectionRequest,
731 size_t /* max_length */) 731 uint32_t /* max_length */)
732 732
733 // Tells the renderer to insert a link to the specified stylesheet. This is 733 // Tells the renderer to insert a link to the specified stylesheet. This is
734 // needed to support navigation transitions. 734 // needed to support navigation transitions.
735 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string) 735 IPC_MESSAGE_ROUTED1(FrameMsg_AddStyleSheetByURL, std::string)
736 736
737 // Change the accessibility mode in the renderer process. 737 // Change the accessibility mode in the renderer process.
738 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, 738 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode,
739 AccessibilityMode) 739 AccessibilityMode)
740 740
741 // Dispatch a load event in the iframe element containing this frame. 741 // Dispatch a load event in the iframe element containing this frame.
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 int64_t /* player_cookie, distinguishes instances */) 1293 int64_t /* player_cookie, distinguishes instances */)
1294 1294
1295 // Notify browser the theme color has been changed. 1295 // Notify browser the theme color has been changed.
1296 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, 1296 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor,
1297 SkColor /* theme_color */) 1297 SkColor /* theme_color */)
1298 1298
1299 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and 1299 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and
1300 // |endOffset| are the offsets of the selection in the returned |content|. 1300 // |endOffset| are the offsets of the selection in the returned |content|.
1301 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 1301 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
1302 base::string16, /* content */ 1302 base::string16, /* content */
1303 size_t, /* startOffset */ 1303 uint32_t, /* startOffset */
1304 size_t /* endOffset */) 1304 uint32_t/* endOffset */)
1305 1305
1306 // Register a new handler for URL requests with the given scheme. 1306 // Register a new handler for URL requests with the given scheme.
1307 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler, 1307 IPC_MESSAGE_ROUTED4(FrameHostMsg_RegisterProtocolHandler,
1308 std::string /* scheme */, 1308 std::string /* scheme */,
1309 GURL /* url */, 1309 GURL /* url */,
1310 base::string16 /* title */, 1310 base::string16 /* title */,
1311 bool /* user_gesture */) 1311 bool /* user_gesture */)
1312 1312
1313 // Unregister the registered handler for URL requests with the given scheme. 1313 // Unregister the registered handler for URL requests with the given scheme.
1314 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler, 1314 IPC_MESSAGE_ROUTED3(FrameHostMsg_UnregisterProtocolHandler,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1452 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1453 int /* version */, 1453 int /* version */,
1454 std::vector<gfx::RectF> /* rects */, 1454 std::vector<gfx::RectF> /* rects */,
1455 gfx::RectF /* active_rect */) 1455 gfx::RectF /* active_rect */)
1456 #endif 1456 #endif
1457 1457
1458 // Adding a new message? Stick to the sort order above: first platform 1458 // Adding a new message? Stick to the sort order above: first platform
1459 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1459 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1460 // platform independent FrameHostMsg, then ifdefs for platform specific 1460 // platform independent FrameHostMsg, then ifdefs for platform specific
1461 // FrameHostMsg. 1461 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698