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

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

Issue 135723003: Move DidCommitProvisionalLoad code from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unit tests and removed WebContents::DidNavigate 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/frame_param.h" 9 #include "content/common/frame_param.h"
10 #include "content/common/navigation_gesture.h"
10 #include "content/public/common/common_param_traits.h" 11 #include "content/public/common/common_param_traits.h"
11 #include "content/public/common/context_menu_params.h" 12 #include "content/public/common/context_menu_params.h"
13 #include "content/public/common/frame_navigate_params.h"
14 #include "content/public/common/page_state.h"
12 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
13 #include "url/gurl.h" 16 #include "url/gurl.h"
14 17
15 #undef IPC_MESSAGE_EXPORT 18 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 20
18 #define IPC_MESSAGE_START FrameMsgStart 21 #define IPC_MESSAGE_START FrameMsgStart
19 22
20 IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType) 23 IPC_ENUM_TRAITS(blink::WebContextMenuData::MediaType)
21 IPC_ENUM_TRAITS(ui::MenuSourceType) 24 IPC_ENUM_TRAITS(ui::MenuSourceType)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // An error message generated from the error_code. This can be an empty 79 // An error message generated from the error_code. This can be an empty
77 // string if we were unable to find a meaningful description. 80 // string if we were unable to find a meaningful description.
78 IPC_STRUCT_MEMBER(base::string16, error_description) 81 IPC_STRUCT_MEMBER(base::string16, error_description)
79 // The URL that the error is reported for. 82 // The URL that the error is reported for.
80 IPC_STRUCT_MEMBER(GURL, url) 83 IPC_STRUCT_MEMBER(GURL, url)
81 // True if the failure is the result of navigating to a POST again 84 // True if the failure is the result of navigating to a POST again
82 // and we're going to show the POST interstitial. 85 // and we're going to show the POST interstitial.
83 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial) 86 IPC_STRUCT_MEMBER(bool, showing_repost_interstitial)
84 IPC_STRUCT_END() 87 IPC_STRUCT_END()
85 88
89 IPC_STRUCT_TRAITS_BEGIN(content::FrameNavigateParams)
90 IPC_STRUCT_TRAITS_MEMBER(page_id)
91 IPC_STRUCT_TRAITS_MEMBER(url)
92 IPC_STRUCT_TRAITS_MEMBER(base_url)
93 IPC_STRUCT_TRAITS_MEMBER(referrer)
94 IPC_STRUCT_TRAITS_MEMBER(transition)
95 IPC_STRUCT_TRAITS_MEMBER(redirects)
96 IPC_STRUCT_TRAITS_MEMBER(should_update_history)
97 IPC_STRUCT_TRAITS_MEMBER(searchable_form_url)
98 IPC_STRUCT_TRAITS_MEMBER(searchable_form_encoding)
99 IPC_STRUCT_TRAITS_MEMBER(contents_mime_type)
100 IPC_STRUCT_TRAITS_MEMBER(socket_address)
101 IPC_STRUCT_TRAITS_END()
102
103 // Parameters structure for FrameHostMsg_DidCommitProvisionalLoad, which has
104 // too many data parameters to be reasonably put in a predefined IPC message.
105 IPC_STRUCT_BEGIN_WITH_PARENT(FrameHostMsg_DidCommitProvisionalLoad_Params,
106 content::FrameNavigateParams)
107 IPC_STRUCT_TRAITS_PARENT(content::FrameNavigateParams)
108 // The frame ID for this navigation. The frame ID uniquely identifies the
109 // frame the navigation happened in for a given renderer.
110 IPC_STRUCT_MEMBER(int64, frame_id)
111
112 // The WebFrame's uniqueName().
113 IPC_STRUCT_MEMBER(base::string16, frame_unique_name)
114
115 // Information regarding the security of the connection (empty if the
116 // connection was not secure).
117 IPC_STRUCT_MEMBER(std::string, security_info)
118
119 // The gesture that initiated this navigation.
120 IPC_STRUCT_MEMBER(content::NavigationGesture, gesture)
121
122 // True if this was a post request.
123 IPC_STRUCT_MEMBER(bool, is_post)
124
125 // The POST body identifier. -1 if it doesn't exist.
126 IPC_STRUCT_MEMBER(int64, post_id)
127
128 // Whether the frame navigation resulted in no change to the documents within
129 // the page. For example, the navigation may have just resulted in scrolling
130 // to a named anchor.
131 IPC_STRUCT_MEMBER(bool, was_within_same_page)
132
133 // The status code of the HTTP request.
134 IPC_STRUCT_MEMBER(int, http_status_code)
135
136 // True if the connection was proxied. In this case, socket_address
137 // will represent the address of the proxy, rather than the remote host.
138 IPC_STRUCT_MEMBER(bool, was_fetched_via_proxy)
139
140 // Serialized history item state to store in the navigation entry.
141 IPC_STRUCT_MEMBER(content::PageState, page_state)
142
143 // Original request's URL.
144 IPC_STRUCT_MEMBER(GURL, original_request_url)
145
146 // User agent override used to navigate.
147 IPC_STRUCT_MEMBER(bool, is_overriding_user_agent)
148
149 // Notifies the browser that for this navigation, the session history was
150 // successfully cleared.
151 IPC_STRUCT_MEMBER(bool, history_list_was_cleared)
152 IPC_STRUCT_END()
153
86 // ----------------------------------------------------------------------------- 154 // -----------------------------------------------------------------------------
87 // Messages sent from the browser to the renderer. 155 // Messages sent from the browser to the renderer.
88 156
89 // When HW accelerated buffers are swapped in an out-of-process child frame 157 // When HW accelerated buffers are swapped in an out-of-process child frame
90 // renderer, the message is forwarded to the embedding frame to notify it of 158 // renderer, the message is forwarded to the embedding frame to notify it of
91 // a new texture available for compositing. When the buffer has finished 159 // a new texture available for compositing. When the buffer has finished
92 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to 160 // presenting, a FrameHostMsg_BuffersSwappedACK should be sent back to
93 // gpu host that produced this buffer. 161 // gpu host that produced this buffer.
94 // 162 //
95 // This is used in the non-ubercomp HW accelerated compositing path. 163 // This is used in the non-ubercomp HW accelerated compositing path.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Sent when the renderer fails a provisional load with an error. 222 // Sent when the renderer fails a provisional load with an error.
155 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError, 223 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFailProvisionalLoadWithError,
156 FrameHostMsg_DidFailProvisionalLoadWithError_Params) 224 FrameHostMsg_DidFailProvisionalLoadWithError_Params)
157 225
158 // Sent when a provisional load on the main frame redirects. 226 // Sent when a provisional load on the main frame redirects.
159 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidRedirectProvisionalLoad, 227 IPC_MESSAGE_ROUTED3(FrameHostMsg_DidRedirectProvisionalLoad,
160 int /* page_id */, 228 int /* page_id */,
161 GURL /* source_url*/, 229 GURL /* source_url*/,
162 GURL /* target_url */) 230 GURL /* target_url */)
163 231
232 // Notifies the browser that a frame in the view has changed. This message
233 // has a lot of parameters and is packed/unpacked by functions defined in
234 // render_messages.h.
235 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidCommitProvisionalLoad,
236 FrameHostMsg_DidCommitProvisionalLoad_Params)
237
164 // Sent to the browser when the renderer detects it is blocked on a pepper 238 // Sent to the browser when the renderer detects it is blocked on a pepper
165 // plugin message for too long. This is also sent when it becomes unhung 239 // plugin message for too long. This is also sent when it becomes unhung
166 // (according to the value of is_hung). The browser can give the user the 240 // (according to the value of is_hung). The browser can give the user the
167 // option of killing the plugin. 241 // option of killing the plugin.
168 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung, 242 IPC_MESSAGE_ROUTED3(FrameHostMsg_PepperPluginHung,
169 int /* plugin_child_id */, 243 int /* plugin_child_id */,
170 base::FilePath /* path */, 244 base::FilePath /* path */,
171 bool /* is_hung */) 245 bool /* is_hung */)
172 246
173 // Sent by the renderer process to indicate that a plugin instance has crashed. 247 // Sent by the renderer process to indicate that a plugin instance has crashed.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Instructs the frame to swap out for a cross-site transition, including 301 // Instructs the frame to swap out for a cross-site transition, including
228 // running the unload event handler. Expects a SwapOut_ACK message when 302 // running the unload event handler. Expects a SwapOut_ACK message when
229 // finished. 303 // finished.
230 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut) 304 IPC_MESSAGE_ROUTED0(FrameMsg_SwapOut)
231 305
232 // Used to tell the parent that the user right clicked on an area of the 306 // Used to tell the parent that the user right clicked on an area of the
233 // content area, and a context menu should be shown for it. The params 307 // content area, and a context menu should be shown for it. The params
234 // object contains information about the node(s) that were selected when the 308 // object contains information about the node(s) that were selected when the
235 // user right clicked. 309 // user right clicked.
236 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams) 310 IPC_MESSAGE_ROUTED1(FrameHostMsg_ContextMenu, content::ContextMenuParams)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698