| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 struct CONTENT_EXPORT CommonNavigationParams { | 51 struct CONTENT_EXPORT CommonNavigationParams { |
| 52 CommonNavigationParams(); | 52 CommonNavigationParams(); |
| 53 CommonNavigationParams(const GURL& url, | 53 CommonNavigationParams(const GURL& url, |
| 54 const Referrer& referrer, | 54 const Referrer& referrer, |
| 55 ui::PageTransition transition, | 55 ui::PageTransition transition, |
| 56 FrameMsg_Navigate_Type::Value navigation_type, | 56 FrameMsg_Navigate_Type::Value navigation_type, |
| 57 bool allow_download, | 57 bool allow_download, |
| 58 bool should_replace_current_entry, | 58 bool should_replace_current_entry, |
| 59 base::TimeTicks ui_timestamp, | 59 base::TimeTicks ui_timestamp, |
| 60 FrameMsg_UILoadMetricsReportType::Value report_type, | 60 FrameMsg_UILoadMetricsReportType::Value report_type, |
| 61 const GURL& base_url_for_data_url, | 61 const GURL& data_url_with_base_url, |
| 62 const GURL& history_url_for_data_url, | 62 const GURL& history_url_for_data_url, |
| 63 LoFiState lofi_state, | 63 LoFiState lofi_state, |
| 64 const base::TimeTicks& navigation_start); | 64 const base::TimeTicks& navigation_start); |
| 65 ~CommonNavigationParams(); | 65 ~CommonNavigationParams(); |
| 66 | 66 |
| 67 // The URL to navigate to. | 67 // The URL to navigate to. |
| 68 // PlzNavigate: May be modified when the navigation is ready to commit. | 68 // PlzNavigate: May be modified when the navigation is ready to commit. |
| 69 GURL url; | 69 GURL url; |
| 70 | 70 |
| 71 // The URL to send in the "Referer" header field. Can be empty if there is | 71 // The URL to send in the "Referer" header field. Can be empty if there is |
| (...skipping 20 matching lines...) Expand all Loading... |
| 92 // Timestamp of the user input event that triggered this navigation. Empty if | 92 // Timestamp of the user input event that triggered this navigation. Empty if |
| 93 // the navigation was not triggered by clicking on a link or by receiving an | 93 // the navigation was not triggered by clicking on a link or by receiving an |
| 94 // intent on Android. | 94 // intent on Android. |
| 95 base::TimeTicks ui_timestamp; | 95 base::TimeTicks ui_timestamp; |
| 96 | 96 |
| 97 // The report type to be used when recording the metric using |ui_timestamp|. | 97 // The report type to be used when recording the metric using |ui_timestamp|. |
| 98 FrameMsg_UILoadMetricsReportType::Value report_type; | 98 FrameMsg_UILoadMetricsReportType::Value report_type; |
| 99 | 99 |
| 100 // Base URL for use in Blink's SubstituteData. | 100 // Base URL for use in Blink's SubstituteData. |
| 101 // Is only used with data: URLs. | 101 // Is only used with data: URLs. |
| 102 GURL base_url_for_data_url; | 102 // GURL base_url_for_data_url; |
| 103 GURL data_url_with_base_url; |
| 103 | 104 |
| 104 // History URL for use in Blink's SubstituteData. | 105 // History URL for use in Blink's SubstituteData. |
| 105 // Is only used with data: URLs. | 106 // Is only used with data: URLs. |
| 106 GURL history_url_for_data_url; | 107 GURL history_url_for_data_url; |
| 107 | 108 |
| 108 // Whether or not to request a LoFi version of the document or let the browser | 109 // Whether or not to request a LoFi version of the document or let the browser |
| 109 // decide. | 110 // decide. |
| 110 LoFiState lofi_state; | 111 LoFiState lofi_state; |
| 111 | 112 |
| 112 // The navigationStart time exposed through the Navigation Timing API to JS. | 113 // The navigationStart time exposed through the Navigation Timing API to JS. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 ~NavigationParams(); | 310 ~NavigationParams(); |
| 310 | 311 |
| 311 CommonNavigationParams common_params; | 312 CommonNavigationParams common_params; |
| 312 StartNavigationParams start_params; | 313 StartNavigationParams start_params; |
| 313 RequestNavigationParams request_params; | 314 RequestNavigationParams request_params; |
| 314 }; | 315 }; |
| 315 | 316 |
| 316 } // namespace content | 317 } // namespace content |
| 317 | 318 |
| 318 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 319 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |