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

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

Issue 172063002: Unify frame IDs with RenderFrameHost routing IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for Albert's comments Created 6 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 | Annotate | Revision Log
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 "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "content/common/content_param_traits.h" 9 #include "content/common/content_param_traits.h"
10 #include "content/common/frame_message_enums.h" 10 #include "content/common/frame_message_enums.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 content::CustomContextMenuContext /* custom_context */, 285 content::CustomContextMenuContext /* custom_context */,
286 unsigned /* action */) 286 unsigned /* action */)
287 287
288 // Tells the renderer to perform the specified navigation, interrupting any 288 // Tells the renderer to perform the specified navigation, interrupting any
289 // existing navigation. 289 // existing navigation.
290 IPC_MESSAGE_ROUTED1(FrameMsg_Navigate, FrameMsg_Navigate_Params) 290 IPC_MESSAGE_ROUTED1(FrameMsg_Navigate, FrameMsg_Navigate_Params)
291 291
292 // ----------------------------------------------------------------------------- 292 // -----------------------------------------------------------------------------
293 // Messages sent from the renderer to the browser. 293 // Messages sent from the renderer to the browser.
294 294
295 // Sent by the renderer when a child frame is created in the renderer. The 295 // Sent by the renderer when a child frame is created in the renderer.
296 // |parent_frame_id| and |frame_id| are NOT routing ids. They are
297 // renderer-allocated identifiers used for tracking a frame's creation.
298 // 296 //
299 // Each of these messages will have a corresponding FrameHostMsg_Detach message 297 // Each of these messages will have a corresponding FrameHostMsg_Detach message
300 // sent when the frame is detached from the DOM. 298 // sent when the frame is detached from the DOM.
301 // 299 IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_CreateChildFrame,
302 // TOOD(ajwong): replace parent_render_frame_id and frame_id with just the 300 int32 /* parent_routing_id */,
303 // routing ids.
304 IPC_SYNC_MESSAGE_CONTROL4_1(FrameHostMsg_CreateChildFrame,
305 int32 /* parent_render_frame_id */,
306 int64 /* parent_frame_id */,
307 int64 /* frame_id */,
308 std::string /* frame_name */, 301 std::string /* frame_name */,
309 int /* new_render_frame_id */) 302 int /* new_routing_id */)
dcheng 2014/02/20 01:28:03 Nit: I think it'd look a little better we used ide
Charlie Reis 2014/02/20 01:49:08 Done.
310 303
311 // Sent by the renderer to the parent RenderFrameHost when a child frame is 304 // Sent by the renderer to the parent RenderFrameHost when a child frame is
312 // detached from the DOM. 305 // detached from the DOM.
313 IPC_MESSAGE_ROUTED2(FrameHostMsg_Detach, 306 IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach)
314 int64 /* parent_frame_id */,
315 int64 /* frame_id */)
316 307
317 // Sent when the renderer starts a provisional load for a frame. 308 // Sent when the renderer starts a provisional load for a frame.
318 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame, 309 IPC_MESSAGE_ROUTED4(FrameHostMsg_DidStartProvisionalLoadForFrame,
319 int64 /* frame_id */, 310 int64 /* frame_id */,
dcheng 2014/02/20 01:28:03 These are just routing IDs too now right? Do we wa
Charlie Reis 2014/02/20 01:49:08 Technically yes, but I'd rather take another pass
320 int64 /* parent_frame_id */, 311 int64 /* parent_frame_id */,
321 bool /* true if it is the main frame */, 312 bool /* true if it is the main frame */,
322 GURL /* url */) 313 GURL /* url */)
323 314
324 // Sent when the renderer fails a provisional load with an error. 315 // Sent when the renderer fails a provisional load with an error.
325 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, 316 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError,
326 FrameHostMsg_DidFailProvisionalLoadWithError_Params) 317 FrameHostMsg_DidFailProvisionalLoadWithError_Params)
327 318
328 // Sent when a provisional load on the main frame redirects. 319 // Sent when a provisional load on the main frame redirects.
329 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidRedirectProvisionalLoad, 320 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidRedirectProvisionalLoad,
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // Instructs the frame to swap out for a cross-site transition, including 420 // Instructs the frame to swap out for a cross-site transition, including
430 // running the unload event handler. Expects a SwapOut_ACK message when 421 // running the unload event handler. Expects a SwapOut_ACK message when
431 // finished. 422 // finished.
432 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) 423 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut)
433 424
434 // Used to tell the parent that the user right clicked on an area of the 425 // Used to tell the parent that the user right clicked on an area of the
435 // content area, and a context menu should be shown for it. The params 426 // content area, and a context menu should be shown for it. The params
436 // object contains information about the node(s) that were selected when the 427 // object contains information about the node(s) that were selected when the
437 // user right clicked. 428 // user right clicked.
438 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) 429 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698