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

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

Issue 208243019: Move SwapOut methods to RenderFrameHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Nasko's comment Created 6 years, 9 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 | Annotate | Revision Log
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 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 // When a renderer sends a ViewHostMsg_Focus to the browser process, 856 // When a renderer sends a ViewHostMsg_Focus to the browser process,
857 // the browser has the option of sending a ViewMsg_CantFocus back to 857 // the browser has the option of sending a ViewMsg_CantFocus back to
858 // the renderer. 858 // the renderer.
859 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) 859 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus)
860 860
861 // Tells the renderer to suppress any further modal dialogs until it receives a 861 // Tells the renderer to suppress any further modal dialogs until it receives a
862 // corresponding ViewMsg_SwapOut message. This ensures that no 862 // corresponding ViewMsg_SwapOut message. This ensures that no
863 // PageGroupLoadDeferrer is on the stack for SwapOut. 863 // PageGroupLoadDeferrer is on the stack for SwapOut.
864 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut) 864 IPC_MESSAGE_ROUTED0(ViewMsg_SuppressDialogsUntilSwapOut)
865 865
866 // Instructs the renderer to swap out for a cross-site transition, including
867 // running the unload event handler. Expects a SwapOut_ACK message when
868 // finished.
869 IPC_MESSAGE_ROUTED0(ViewMsg_SwapOut)
870
871 // Instructs the renderer to close the current page, including running the 866 // Instructs the renderer to close the current page, including running the
872 // onunload event handler. 867 // onunload event handler.
873 // 868 //
874 // Expects a ClosePage_ACK message when finished. 869 // Expects a ClosePage_ACK message when finished.
875 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage) 870 IPC_MESSAGE_ROUTED0(ViewMsg_ClosePage)
876 871
877 // Notifies the renderer about ui theme changes 872 // Notifies the renderer about ui theme changes
878 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged) 873 IPC_MESSAGE_ROUTED0(ViewMsg_ThemeChanged)
879 874
880 // Notifies the renderer that a paint is to be generated for the rectangle 875 // Notifies the renderer that a paint is to be generated for the rectangle
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 // coordinates) for the string found. If |final_update| is false, it signals 1212 // coordinates) for the string found. If |final_update| is false, it signals
1218 // that this is not the last Find_Reply message - more will be sent as the 1213 // that this is not the last Find_Reply message - more will be sent as the
1219 // scoping effort continues. 1214 // scoping effort continues.
1220 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply, 1215 IPC_MESSAGE_ROUTED5(ViewHostMsg_Find_Reply,
1221 int /* request_id */, 1216 int /* request_id */,
1222 int /* number of matches */, 1217 int /* number of matches */,
1223 gfx::Rect /* selection_rect */, 1218 gfx::Rect /* selection_rect */,
1224 int /* active_match_ordinal */, 1219 int /* active_match_ordinal */,
1225 bool /* final_update */) 1220 bool /* final_update */)
1226 1221
1227 // Indicates that the current renderer has swapped out, after a SwapOut
1228 // message.
1229 IPC_MESSAGE_ROUTED0(ViewHostMsg_SwapOut_ACK)
1230
1231 // Indicates that the current page has been closed, after a ClosePage 1222 // Indicates that the current page has been closed, after a ClosePage
1232 // message. 1223 // message.
1233 IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK) 1224 IPC_MESSAGE_ROUTED0(ViewHostMsg_ClosePage_ACK)
1234 1225
1235 // Notifies the browser that media has started/stopped playing. 1226 // Notifies the browser that media has started/stopped playing.
1236 IPC_MESSAGE_ROUTED3(ViewHostMsg_MediaPlayingNotification, 1227 IPC_MESSAGE_ROUTED3(ViewHostMsg_MediaPlayingNotification,
1237 int64 /* player_cookie, distinguishes instances */, 1228 int64 /* player_cookie, distinguishes instances */,
1238 bool /* has_video */, 1229 bool /* has_video */,
1239 bool /* has_audio */) 1230 bool /* has_audio */)
1240 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPausedNotification, 1231 IPC_MESSAGE_ROUTED1(ViewHostMsg_MediaPausedNotification,
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 // synchronously (see crbug.com/120597). This IPC message sends the character 1961 // synchronously (see crbug.com/120597). This IPC message sends the character
1971 // bounds after every composition change to always have correct bound info. 1962 // bounds after every composition change to always have correct bound info.
1972 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, 1963 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged,
1973 gfx::Range /* composition range */, 1964 gfx::Range /* composition range */,
1974 std::vector<gfx::Rect> /* character bounds */) 1965 std::vector<gfx::Rect> /* character bounds */)
1975 #endif 1966 #endif
1976 1967
1977 // Adding a new message? Stick to the sort order above: first platform 1968 // Adding a new message? Stick to the sort order above: first platform
1978 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 1969 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
1979 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 1970 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698