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

Side by Side Diff: content/public/browser/navigation_handle.h

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Addressed comments(@brettw) Created 3 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // If PlzNavigate is active, the RenderFrameHost returned will be the final 149 // If PlzNavigate is active, the RenderFrameHost returned will be the final
150 // host for the navigation. If PlzNavigate is inactive, the navigation may 150 // host for the navigation. If PlzNavigate is inactive, the navigation may
151 // transfer to a new host up until the point that DidFinishNavigation is 151 // transfer to a new host up until the point that DidFinishNavigation is
152 // called. 152 // called.
153 virtual RenderFrameHost* GetRenderFrameHost() = 0; 153 virtual RenderFrameHost* GetRenderFrameHost() = 0;
154 154
155 // Whether the navigation happened in the same page. Examples of same page 155 // Whether the navigation happened in the same page. Examples of same page
156 // navigations are: 156 // navigations are:
157 // * reference fragment navigations 157 // * reference fragment navigations
158 // * pushState/replaceState 158 // * pushState/replaceState
159 // * same page history navigation
159 virtual bool IsSamePage() = 0; 160 virtual bool IsSamePage() = 0;
160 161
161 // Whether the navigation has encountered a server redirect or not. 162 // Whether the navigation has encountered a server redirect or not.
162 virtual bool WasServerRedirect() = 0; 163 virtual bool WasServerRedirect() = 0;
163 164
164 // Lists the redirects that occurred on the way to the current page. The 165 // Lists the redirects that occurred on the way to the current page. The
165 // current page is the last one in the list (so even when there's no redirect, 166 // current page is the last one in the list (so even when there's no redirect,
166 // there will be one entry in the list). 167 // there will be one entry in the list).
167 virtual const std::vector<GURL>& GetRedirectChain() = 0; 168 virtual const std::vector<GURL>& GetRedirectChain() = 0;
168 169
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 274
274 // The NavigationData that the embedder returned from 275 // The NavigationData that the embedder returned from
275 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 276 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
276 // be a clone of the NavigationData. 277 // be a clone of the NavigationData.
277 virtual NavigationData* GetNavigationData() = 0; 278 virtual NavigationData* GetNavigationData() = 0;
278 }; 279 };
279 280
280 } // namespace content 281 } // namespace content
281 282
282 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 283 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698