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

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

Issue 184873004: Update resource requests to remove redundant frame ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments 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 resource loading. 5 // IPC messages for resource loading.
6 // 6 //
7 // NOTE: All messages must send an |int request_id| as their first parameter. 7 // NOTE: All messages must send an |int request_id| as their first parameter.
8 8
9 // Multiply-included message file, hence no include guard. 9 // Multiply-included message file, hence no include guard.
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 // True if the request was user initiated. 179 // True if the request was user initiated.
180 IPC_STRUCT_MEMBER(bool, has_user_gesture) 180 IPC_STRUCT_MEMBER(bool, has_user_gesture)
181 181
182 // The routing id of the RenderFrame. 182 // The routing id of the RenderFrame.
183 IPC_STRUCT_MEMBER(int, render_frame_id) 183 IPC_STRUCT_MEMBER(int, render_frame_id)
184 184
185 // True if |frame_id| is the main frame of a RenderView. 185 // True if |frame_id| is the main frame of a RenderView.
186 IPC_STRUCT_MEMBER(bool, is_main_frame) 186 IPC_STRUCT_MEMBER(bool, is_main_frame)
187 187
188 // Identifies the frame within the RenderView that sent the request. 188 // True if |parent_render_frame_id| is the main frame of a RenderView.
189 // -1 if unknown / invalid.
190 IPC_STRUCT_MEMBER(int64, frame_id)
191
192 // True if |parent_frame_id| is the main frame of a RenderView.
193 IPC_STRUCT_MEMBER(bool, parent_is_main_frame) 189 IPC_STRUCT_MEMBER(bool, parent_is_main_frame)
194 190
195 // Identifies the parent frame of the frame that sent the request. 191 // Identifies the parent frame of the frame that sent the request.
196 // -1 if unknown / invalid. 192 // -1 if unknown / invalid.
197 IPC_STRUCT_MEMBER(int64, parent_frame_id) 193 IPC_STRUCT_MEMBER(int, parent_render_frame_id)
198 194
199 IPC_STRUCT_MEMBER(content::PageTransition, transition_type) 195 IPC_STRUCT_MEMBER(content::PageTransition, transition_type)
200 196
201 // For navigations, whether this navigation should replace the current session 197 // For navigations, whether this navigation should replace the current session
202 // history entry on commit. 198 // history entry on commit.
203 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) 199 IPC_STRUCT_MEMBER(bool, should_replace_current_entry)
204 200
205 // The following two members identify a previous request that has been 201 // The following two members identify a previous request that has been
206 // created before this navigation has been transferred to a new render view. 202 // created before this navigation has been transferred to a new render view.
207 // This serves the purpose of recycling the old request. 203 // This serves the purpose of recycling the old request.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 int /* request_id */) 334 int /* request_id */)
339 335
340 // Sent when the renderer process deletes a resource loader. 336 // Sent when the renderer process deletes a resource loader.
341 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile, 337 IPC_MESSAGE_CONTROL1(ResourceHostMsg_ReleaseDownloadedFile,
342 int /* request_id */) 338 int /* request_id */)
343 339
344 // Sent by the renderer when a resource request changes priority. 340 // Sent by the renderer when a resource request changes priority.
345 IPC_MESSAGE_CONTROL2(ResourceHostMsg_DidChangePriority, 341 IPC_MESSAGE_CONTROL2(ResourceHostMsg_DidChangePriority,
346 int /* request_id */, 342 int /* request_id */,
347 net::RequestPriority) 343 net::RequestPriority)
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher_unittest.cc ('k') | content/public/browser/resource_request_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698