Chromium Code Reviews| 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 24 matching lines...) Expand all Loading... | |
| 35 const Referrer& referrer, | 35 const Referrer& referrer, |
| 36 ui::PageTransition transition, | 36 ui::PageTransition transition, |
| 37 FrameMsg_Navigate_Type::Value navigation_type, | 37 FrameMsg_Navigate_Type::Value navigation_type, |
| 38 bool allow_download, | 38 bool allow_download, |
| 39 base::TimeTicks ui_timestamp, | 39 base::TimeTicks ui_timestamp, |
| 40 FrameMsg_UILoadMetricsReportType::Value report_type, | 40 FrameMsg_UILoadMetricsReportType::Value report_type, |
| 41 const GURL& base_url_for_data_url, | 41 const GURL& base_url_for_data_url, |
| 42 const GURL& history_url_for_data_url); | 42 const GURL& history_url_for_data_url); |
| 43 ~CommonNavigationParams(); | 43 ~CommonNavigationParams(); |
| 44 | 44 |
| 45 // Helper function to determine if the navigation request to |url| should be | |
| 46 // sent to the network stack. It will not be sent for data URLs or JavaScript | |
| 47 // URLs, cases where no network request needs to be made. | |
| 48 static bool ShouldMakeNetworkRequest(const GURL& url); | |
|
clamy
2015/07/03 11:41:44
A static method inside a struct strikes me as odd.
Fabrice (no longer in Chrome)
2015/07/03 14:55:36
Done.
| |
| 49 | |
| 45 // The URL to navigate to. | 50 // The URL to navigate to. |
| 46 // PlzNavigate: May be modified when the navigation is ready to commit. | 51 // PlzNavigate: May be modified when the navigation is ready to commit. |
| 47 GURL url; | 52 GURL url; |
| 48 | 53 |
| 49 // The URL to send in the "Referer" header field. Can be empty if there is | 54 // The URL to send in the "Referer" header field. Can be empty if there is |
| 50 // no referrer. | 55 // no referrer. |
| 51 Referrer referrer; | 56 Referrer referrer; |
| 52 | 57 |
| 53 // The type of transition. | 58 // The type of transition. |
| 54 ui::PageTransition transition; | 59 ui::PageTransition transition; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 253 ~NavigationParams(); | 258 ~NavigationParams(); |
| 254 | 259 |
| 255 CommonNavigationParams common_params; | 260 CommonNavigationParams common_params; |
| 256 StartNavigationParams start_params; | 261 StartNavigationParams start_params; |
| 257 RequestNavigationParams request_params; | 262 RequestNavigationParams request_params; |
| 258 }; | 263 }; |
| 259 | 264 |
| 260 } // namespace content | 265 } // namespace content |
| 261 | 266 |
| 262 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ | 267 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ |
| OLD | NEW |