| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 5 #ifndef CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 6 #define CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 // Opaque history state (received by ViewHostMsg_UpdateState). | 310 // Opaque history state (received by ViewHostMsg_UpdateState). |
| 311 PageState page_state; | 311 PageState page_state; |
| 312 | 312 |
| 313 // For browser-initiated navigations, this is the unique id of the | 313 // For browser-initiated navigations, this is the unique id of the |
| 314 // NavigationEntry being navigated to. (For renderer-initiated navigations it | 314 // NavigationEntry being navigated to. (For renderer-initiated navigations it |
| 315 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in | 315 // is 0.) If the load succeeds, then this nav_entry_id will be reflected in |
| 316 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. | 316 // the resulting FrameHostMsg_DidCommitProvisionalLoad message. |
| 317 int nav_entry_id; | 317 int nav_entry_id; |
| 318 | 318 |
| 319 // For browser-initiated navigations, this is the DevTools Network.requestId |
| 320 // which will always an odd number to let us distinguish browser generated IDs |
| 321 // from blink generated IDs (which will be even). For renderer-initiated |
| 322 // navigations this will be zero. |
| 323 int devtools_request_id; |
| 324 |
| 319 // Whether this is a history navigation in a newly created child frame, in | 325 // Whether this is a history navigation in a newly created child frame, in |
| 320 // which case the browser process is instructing the renderer process to load | 326 // which case the browser process is instructing the renderer process to load |
| 321 // a URL from a session history item. Defaults to false. | 327 // a URL from a session history item. Defaults to false. |
| 322 bool is_history_navigation_in_new_child; | 328 bool is_history_navigation_in_new_child; |
| 323 | 329 |
| 324 // If this is a history navigation, this contains a map of frame unique names | 330 // If this is a history navigation, this contains a map of frame unique names |
| 325 // to |is_about_blank| for immediate children of the frame being navigated for | 331 // to |is_about_blank| for immediate children of the frame being navigated for |
| 326 // which there are history items. The renderer process only needs to check | 332 // which there are history items. The renderer process only needs to check |
| 327 // with the browser process for newly created subframes that have these unique | 333 // with the browser process for newly created subframes that have these unique |
| 328 // names (and only when not staying on about:blank). | 334 // names (and only when not staying on about:blank). |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 ~NavigationParams(); | 408 ~NavigationParams(); |
| 403 | 409 |
| 404 CommonNavigationParams common_params; | 410 CommonNavigationParams common_params; |
| 405 StartNavigationParams start_params; | 411 StartNavigationParams start_params; |
| 406 RequestNavigationParams request_params; | 412 RequestNavigationParams request_params; |
| 407 }; | 413 }; |
| 408 | 414 |
| 409 } // namespace content | 415 } // namespace content |
| 410 | 416 |
| 411 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 417 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |