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

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

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Rebase. 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
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/public/test/render_view_test.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 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 276
276 // The NavigationData that the embedder returned from 277 // The NavigationData that the embedder returned from
277 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 278 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
278 // be a clone of the NavigationData. 279 // be a clone of the NavigationData.
279 virtual NavigationData* GetNavigationData() = 0; 280 virtual NavigationData* GetNavigationData() = 0;
280 }; 281 };
281 282
282 } // namespace content 283 } // namespace content
283 284
284 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 285 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698