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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |