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

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

Issue 159255: Fix a race condition where rapid back/forward clicks could close a tab... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/render_view.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // the browser has the option of sending a ViewMsg_CantFocus back to 452 // the browser has the option of sending a ViewMsg_CantFocus back to
453 // the renderer. 453 // the renderer.
454 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus) 454 IPC_MESSAGE_ROUTED0(ViewMsg_CantFocus)
455 455
456 // Instructs the renderer to invoke the frame's shouldClose method, which 456 // Instructs the renderer to invoke the frame's shouldClose method, which
457 // runs the onbeforeunload event handler. Expects the result to be returned 457 // runs the onbeforeunload event handler. Expects the result to be returned
458 // via ViewHostMsg_ShouldClose. 458 // via ViewHostMsg_ShouldClose.
459 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose) 459 IPC_MESSAGE_ROUTED0(ViewMsg_ShouldClose)
460 460
461 // Instructs the renderer to close the current page, including running the 461 // Instructs the renderer to close the current page, including running the
462 // onunload event handler. Expects a ClosePage_ACK message when finished. 462 // onunload event handler. See the struct in render_messages.h for more.
463 IPC_MESSAGE_ROUTED2(ViewMsg_ClosePage, 463 //
464 int /* new_render_process_host_id */, 464 // Expects a ClosePage_ACK message when finished, where the parameters are
465 int /* new_request_id */) 465 // echoed back.
466 IPC_MESSAGE_ROUTED1(ViewMsg_ClosePage,
467 ViewMsg_ClosePage_Params)
466 468
467 // Asks the renderer to send back stats on the WebCore cache broken down by 469 // Asks the renderer to send back stats on the WebCore cache broken down by
468 // resource types. 470 // resource types.
469 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats) 471 IPC_MESSAGE_CONTROL0(ViewMsg_GetCacheResourceStats)
470 472
471 // Asks the renderer to send back Histograms. 473 // Asks the renderer to send back Histograms.
472 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms, 474 IPC_MESSAGE_CONTROL1(ViewMsg_GetRendererHistograms,
473 int /* sequence number of Renderer Histograms. */) 475 int /* sequence number of Renderer Histograms. */)
474 476
475 // Notifies the renderer about ui theme changes 477 // Notifies the renderer about ui theme changes
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 webkit_glue::WebApplicationInfo) 1210 webkit_glue::WebApplicationInfo)
1209 1211
1210 // Provides the result from running OnMsgShouldClose. |proceed| matches the 1212 // Provides the result from running OnMsgShouldClose. |proceed| matches the
1211 // return value of the the frame's shouldClose method (which includes the 1213 // return value of the the frame's shouldClose method (which includes the
1212 // onbeforeunload handler): true if the user decided to proceed with leaving 1214 // onbeforeunload handler): true if the user decided to proceed with leaving
1213 // the page. 1215 // the page.
1214 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShouldClose_ACK, 1216 IPC_MESSAGE_ROUTED1(ViewHostMsg_ShouldClose_ACK,
1215 bool /* proceed */) 1217 bool /* proceed */)
1216 1218
1217 // Indicates that the current page has been closed, after a ClosePage 1219 // Indicates that the current page has been closed, after a ClosePage
1218 // message. 1220 // message. The parameters are just echoed from the ClosePage request.
1219 IPC_MESSAGE_ROUTED2(ViewHostMsg_ClosePage_ACK, 1221 IPC_MESSAGE_ROUTED1(ViewHostMsg_ClosePage_ACK,
1220 int /* new_render_process_host_id */, 1222 ViewMsg_ClosePage_Params)
1221 int /* new_request_id */)
1222 1223
1223 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavIcon, 1224 IPC_MESSAGE_ROUTED4(ViewHostMsg_DidDownloadFavIcon,
1224 int /* Identifier of the request */, 1225 int /* Identifier of the request */,
1225 GURL /* URL of the image */, 1226 GURL /* URL of the image */,
1226 bool /* true if there was a network error */, 1227 bool /* true if there was a network error */,
1227 SkBitmap /* image_data */) 1228 SkBitmap /* image_data */)
1228 1229
1229 // Sent to query MIME information. 1230 // Sent to query MIME information.
1230 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetMimeTypeFromExtension, 1231 IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_GetMimeTypeFromExtension,
1231 FilePath::StringType /* extension */, 1232 FilePath::StringType /* extension */,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 // web resource. |error_message| is a user-readable explanation of what 1575 // web resource. |error_message| is a user-readable explanation of what
1575 // went wrong. 1576 // went wrong.
1576 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed, 1577 IPC_MESSAGE_CONTROL1(UtilityHostMsg_UnpackWebResource_Failed,
1577 std::string /* error_message, if any */) 1578 std::string /* error_message, if any */)
1578 1579
1579 // Sent by the renderer process to acknowledge receipt of a 1580 // Sent by the renderer process to acknowledge receipt of a
1580 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame. 1581 // ViewMsg_CSSInsertRequest message and css has been inserted into the frame.
1581 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted) 1582 IPC_MESSAGE_ROUTED0(ViewHostMsg_OnCSSInserted)
1582 1583
1583 IPC_END_MESSAGES(ViewHost) 1584 IPC_END_MESSAGES(ViewHost)
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698