OLD | NEW |
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 Loading... |
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 // Lists the redirects that occurred on the way to the current page. The | 164 // Lists the redirects that occurred on the way to the current page. The |
164 // current page is the last one in the list (so even when there's no redirect, | 165 // current page is the last one in the list (so even when there's no redirect, |
165 // there will be one entry in the list). | 166 // there will be one entry in the list). |
166 virtual const std::vector<GURL>& GetRedirectChain() = 0; | 167 virtual const std::vector<GURL>& GetRedirectChain() = 0; |
167 | 168 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 257 |
257 // The NavigationData that the embedder returned from | 258 // The NavigationData that the embedder returned from |
258 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 259 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
259 // be a clone of the NavigationData. | 260 // be a clone of the NavigationData. |
260 virtual NavigationData* GetNavigationData() = 0; | 261 virtual NavigationData* GetNavigationData() = 0; |
261 }; | 262 }; |
262 | 263 |
263 } // namespace content | 264 } // namespace content |
264 | 265 |
265 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 266 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
OLD | NEW |