OLD | NEW |
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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 IPC_STRUCT_END() | 264 IPC_STRUCT_END() |
265 | 265 |
266 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) | 266 IPC_STRUCT_BEGIN(FrameHostMsg_OpenURL_Params) |
267 IPC_STRUCT_MEMBER(GURL, url) | 267 IPC_STRUCT_MEMBER(GURL, url) |
268 IPC_STRUCT_MEMBER(content::Referrer, referrer) | 268 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
269 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) | 269 IPC_STRUCT_MEMBER(WindowOpenDisposition, disposition) |
270 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) | 270 IPC_STRUCT_MEMBER(bool, should_replace_current_entry) |
271 IPC_STRUCT_MEMBER(bool, user_gesture) | 271 IPC_STRUCT_MEMBER(bool, user_gesture) |
272 IPC_STRUCT_END() | 272 IPC_STRUCT_END() |
273 | 273 |
| 274 // PlzNavigate |
274 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) | 275 IPC_STRUCT_BEGIN(FrameHostMsg_BeginNavigation_Params) |
275 // The request method: GET, POST, etc. | 276 // The request method: GET, POST, etc. |
276 IPC_STRUCT_MEMBER(std::string, method) | 277 IPC_STRUCT_MEMBER(std::string, method) |
277 | 278 |
278 // The requested URL. | 279 // The requested URL. |
279 IPC_STRUCT_MEMBER(GURL, url) | 280 IPC_STRUCT_MEMBER(GURL, url) |
280 | 281 |
281 // The referrer to use (may be empty). | 282 // The referrer to use (may be empty). |
282 IPC_STRUCT_MEMBER(GURL, referrer) | 283 IPC_STRUCT_MEMBER(content::Referrer, referrer) |
283 | |
284 // The referrer policy to use. | |
285 IPC_STRUCT_MEMBER(blink::WebReferrerPolicy, referrer_policy) | |
286 | 284 |
287 // Additional HTTP request headers. | 285 // Additional HTTP request headers. |
288 IPC_STRUCT_MEMBER(std::string, headers) | 286 IPC_STRUCT_MEMBER(std::string, headers) |
289 | 287 |
290 // net::URLRequest load flags (net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING | 288 // net::URLRequest load flags (net::LOAD_NORMAL | net::LOAD_ENABLE_LOAD_TIMING |
291 // by default). | 289 // by default). |
292 IPC_STRUCT_MEMBER(int, load_flags) | 290 IPC_STRUCT_MEMBER(int, load_flags) |
293 | 291 |
294 // Optional resource request body (may be null). | 292 // Optional resource request body (may be null). |
295 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, | 293 IPC_STRUCT_MEMBER(scoped_refptr<content::ResourceRequestBody>, |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 std::string /* selector */, | 706 std::string /* selector */, |
709 std::string /* markup */) | 707 std::string /* markup */) |
710 | 708 |
711 // Tells the browser to perform a navigation. | 709 // Tells the browser to perform a navigation. |
712 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, | 710 IPC_MESSAGE_ROUTED1(FrameHostMsg_BeginNavigation, |
713 FrameHostMsg_BeginNavigation_Params) | 711 FrameHostMsg_BeginNavigation_Params) |
714 | 712 |
715 // Sent once a paint happens after the first non empty layout. In other words | 713 // Sent once a paint happens after the first non empty layout. In other words |
716 // after the frame has painted something. | 714 // after the frame has painted something. |
717 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) | 715 IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFirstVisuallyNonEmptyPaint) |
OLD | NEW |