| 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 <set> | 10 #include <set> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 FrameMsg_Navigate_Type::Value navigation_type, | 59 FrameMsg_Navigate_Type::Value navigation_type, |
| 60 bool allow_download, | 60 bool allow_download, |
| 61 bool should_replace_current_entry, | 61 bool should_replace_current_entry, |
| 62 base::TimeTicks ui_timestamp, | 62 base::TimeTicks ui_timestamp, |
| 63 FrameMsg_UILoadMetricsReportType::Value report_type, | 63 FrameMsg_UILoadMetricsReportType::Value report_type, |
| 64 const GURL& base_url_for_data_url, | 64 const GURL& base_url_for_data_url, |
| 65 const GURL& history_url_for_data_url, | 65 const GURL& history_url_for_data_url, |
| 66 LoFiState lofi_state, | 66 LoFiState lofi_state, |
| 67 const base::TimeTicks& navigation_start, | 67 const base::TimeTicks& navigation_start, |
| 68 std::string method, | 68 std::string method, |
| 69 bool post_contains_passwords, |
| 69 const scoped_refptr<ResourceRequestBodyImpl>& post_data); | 70 const scoped_refptr<ResourceRequestBodyImpl>& post_data); |
| 70 CommonNavigationParams(const CommonNavigationParams& other); | 71 CommonNavigationParams(const CommonNavigationParams& other); |
| 71 ~CommonNavigationParams(); | 72 ~CommonNavigationParams(); |
| 72 | 73 |
| 73 // The URL to navigate to. | 74 // The URL to navigate to. |
| 74 // PlzNavigate: May be modified when the navigation is ready to commit. | 75 // PlzNavigate: May be modified when the navigation is ready to commit. |
| 75 GURL url; | 76 GURL url; |
| 76 | 77 |
| 77 // The URL to send in the "Referer" header field. Can be empty if there is | 78 // The URL to send in the "Referer" header field. Can be empty if there is |
| 78 // no referrer. | 79 // no referrer. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // The navigationStart time exposed through the Navigation Timing API to JS. | 119 // The navigationStart time exposed through the Navigation Timing API to JS. |
| 119 // If this is for a browser-initiated navigation, this can override the | 120 // If this is for a browser-initiated navigation, this can override the |
| 120 // navigation_start value in Blink. | 121 // navigation_start value in Blink. |
| 121 // PlzNavigate: For renderer initiated navigations, this will be set on the | 122 // PlzNavigate: For renderer initiated navigations, this will be set on the |
| 122 // renderer side and sent with FrameHostMsg_BeginNavigation. | 123 // renderer side and sent with FrameHostMsg_BeginNavigation. |
| 123 base::TimeTicks navigation_start; | 124 base::TimeTicks navigation_start; |
| 124 | 125 |
| 125 // The request method: GET, POST, etc. | 126 // The request method: GET, POST, etc. |
| 126 std::string method; | 127 std::string method; |
| 127 | 128 |
| 129 // Indicates if the post data below contains passwords. |
| 130 bool post_contains_passwords; |
| 131 |
| 128 // Body of HTTP POST request. | 132 // Body of HTTP POST request. |
| 129 scoped_refptr<ResourceRequestBodyImpl> post_data; | 133 scoped_refptr<ResourceRequestBodyImpl> post_data; |
| 130 }; | 134 }; |
| 131 | 135 |
| 132 // Provided by the renderer ---------------------------------------------------- | 136 // Provided by the renderer ---------------------------------------------------- |
| 133 // | 137 // |
| 134 // This struct holds parameters sent by the renderer to the browser. It is only | 138 // This struct holds parameters sent by the renderer to the browser. It is only |
| 135 // used in PlzNavigate (since in the current architecture, the renderer does not | 139 // used in PlzNavigate (since in the current architecture, the renderer does not |
| 136 // inform the browser of navigations until they commit). | 140 // inform the browser of navigations until they commit). |
| 137 | 141 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 ~NavigationParams(); | 358 ~NavigationParams(); |
| 355 | 359 |
| 356 CommonNavigationParams common_params; | 360 CommonNavigationParams common_params; |
| 357 StartNavigationParams start_params; | 361 StartNavigationParams start_params; |
| 358 RequestNavigationParams request_params; | 362 RequestNavigationParams request_params; |
| 359 }; | 363 }; |
| 360 | 364 |
| 361 } // namespace content | 365 } // namespace content |
| 362 | 366 |
| 363 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 367 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |