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

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

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Addressed comment (@nasko) #2. Created 3 years, 11 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // If PlzNavigate is active, the RenderFrameHost returned will be the final 148 // If PlzNavigate is active, the RenderFrameHost returned will be the final
149 // host for the navigation. If PlzNavigate is inactive, the navigation may 149 // host for the navigation. If PlzNavigate is inactive, the navigation may
150 // transfer to a new host up until the point that DidFinishNavigation is 150 // transfer to a new host up until the point that DidFinishNavigation is
151 // called. 151 // called.
152 virtual RenderFrameHost* GetRenderFrameHost() = 0; 152 virtual RenderFrameHost* GetRenderFrameHost() = 0;
153 153
154 // Whether the navigation happened in the same page. Examples of same page 154 // Whether the navigation happened in the same page. Examples of same page
155 // navigations are: 155 // navigations are:
156 // * reference fragment navigations 156 // * reference fragment navigations
157 // * pushState/replaceState 157 // * pushState/replaceState
158 // * same page history navigation
158 virtual bool IsSamePage() = 0; 159 virtual bool IsSamePage() = 0;
159 160
160 // Whether the navigation has encountered a server redirect or not. 161 // Whether the navigation has encountered a server redirect or not.
161 virtual bool WasServerRedirect() = 0; 162 virtual bool WasServerRedirect() = 0;
162 163
163 // Whether the navigation has committed. This returns true for either 164 // Whether the navigation has committed. This returns true for either
164 // successful commits or error pages that replace the previous page 165 // successful commits or error pages that replace the previous page
165 // (distinguished by |IsErrorPage|), and false for errors that leave the user 166 // (distinguished by |IsErrorPage|), and false for errors that leave the user
166 // on the previous page. 167 // on the previous page.
167 virtual bool HasCommitted() = 0; 168 virtual bool HasCommitted() = 0;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 252
252 // The NavigationData that the embedder returned from 253 // The NavigationData that the embedder returned from
253 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 254 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
254 // be a clone of the NavigationData. 255 // be a clone of the NavigationData.
255 virtual NavigationData* GetNavigationData() = 0; 256 virtual NavigationData* GetNavigationData() = 0;
256 }; 257 };
257 258
258 } // namespace content 259 } // namespace content
259 260
260 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 261 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698