Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: content/common/navigation_params.h

Issue 1182453002: PlzNavigate: support for should_replace_current_entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 21 matching lines...) Expand all
32 struct CONTENT_EXPORT CommonNavigationParams { 32 struct CONTENT_EXPORT CommonNavigationParams {
33 CommonNavigationParams(); 33 CommonNavigationParams();
34 CommonNavigationParams(const GURL& url, 34 CommonNavigationParams(const GURL& url,
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 bool lock_history_list);
43 ~CommonNavigationParams(); 44 ~CommonNavigationParams();
44 45
45 // The URL to navigate to. 46 // The URL to navigate to.
46 // PlzNavigate: May be modified when the navigation is ready to commit. 47 // PlzNavigate: May be modified when the navigation is ready to commit.
47 GURL url; 48 GURL url;
48 49
49 // The URL to send in the "Referer" header field. Can be empty if there is 50 // The URL to send in the "Referer" header field. Can be empty if there is
50 // no referrer. 51 // no referrer.
51 Referrer referrer; 52 Referrer referrer;
52 53
(...skipping 15 matching lines...) Expand all
68 // The report type to be used when recording the metric using |ui_timestamp|. 69 // The report type to be used when recording the metric using |ui_timestamp|.
69 FrameMsg_UILoadMetricsReportType::Value report_type; 70 FrameMsg_UILoadMetricsReportType::Value report_type;
70 71
71 // Base URL for use in Blink's SubstituteData. 72 // Base URL for use in Blink's SubstituteData.
72 // Is only used with data: URLs. 73 // Is only used with data: URLs.
73 GURL base_url_for_data_url; 74 GURL base_url_for_data_url;
74 75
75 // History URL for use in Blink's SubstituteData. 76 // History URL for use in Blink's SubstituteData.
76 // Is only used with data: URLs. 77 // Is only used with data: URLs.
77 GURL history_url_for_data_url; 78 GURL history_url_for_data_url;
79
80 // PlzNavigate
81 // Whether the navigation should generate a new entry in the history list on
82 // commit. This is false for many client-side redirects.
83 bool lock_history_list;
Avi (use Gerrit) 2015/06/11 19:09:01 The meaning of this is unclear. The comment says
78 }; 84 };
79 85
80 // Provided by the renderer ---------------------------------------------------- 86 // Provided by the renderer ----------------------------------------------------
81 // 87 //
82 // This struct holds parameters sent by the renderer to the browser. It is only 88 // This struct holds parameters sent by the renderer to the browser. It is only
83 // used in PlzNavigate (since in the current architecture, the renderer does not 89 // used in PlzNavigate (since in the current architecture, the renderer does not
84 // inform the browser of navigations until they commit). 90 // inform the browser of navigations until they commit).
85 91
86 // This struct is not used outside of the PlzNavigate project. 92 // This struct is not used outside of the PlzNavigate project.
87 // PlzNavigate: parameters needed to start a navigation on the IO thread, 93 // PlzNavigate: parameters needed to start a navigation on the IO thread,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 ~NavigationParams(); 254 ~NavigationParams();
249 255
250 CommonNavigationParams common_params; 256 CommonNavigationParams common_params;
251 StartNavigationParams start_params; 257 StartNavigationParams start_params;
252 RequestNavigationParams request_params; 258 RequestNavigationParams request_params;
253 }; 259 };
254 260
255 } // namespace content 261 } // namespace content
256 262
257 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_ 263 #endif // CONTENT_COMMON_NAVIGATION_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698