| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 // Returns the RenderFrameHost this navigation is taking place in. This can | 151 // Returns the RenderFrameHost this navigation is taking place in. This can |
| 152 // only be accessed after a response has been delivered for processing. | 152 // only be accessed after a response has been delivered for processing. |
| 153 // | 153 // |
| 154 // If PlzNavigate is active, the RenderFrameHost returned will be the final | 154 // If PlzNavigate is active, the RenderFrameHost returned will be the final |
| 155 // host for the navigation. If PlzNavigate is inactive, the navigation may | 155 // host for the navigation. If PlzNavigate is inactive, the navigation may |
| 156 // transfer to a new host up until the point that DidFinishNavigation is | 156 // transfer to a new host up until the point that DidFinishNavigation is |
| 157 // called. | 157 // called. |
| 158 virtual RenderFrameHost* GetRenderFrameHost() = 0; | 158 virtual RenderFrameHost* GetRenderFrameHost() = 0; |
| 159 | 159 |
| 160 // Whether the navigation happened in the same page. Examples of same page | 160 // Whether the navigation happened without changing document. Examples of |
| 161 // navigations are: | 161 // same document navigations are: |
| 162 // * reference fragment navigations | 162 // * reference fragment navigations |
| 163 // * pushState/replaceState | 163 // * pushState/replaceState |
| 164 // * same page history navigation | 164 // * same page history navigation |
| 165 virtual bool IsSamePage() = 0; | 165 virtual bool IsSameDocument() = 0; |
| 166 | 166 |
| 167 // Whether the navigation has encountered a server redirect or not. | 167 // Whether the navigation has encountered a server redirect or not. |
| 168 virtual bool WasServerRedirect() = 0; | 168 virtual bool WasServerRedirect() = 0; |
| 169 | 169 |
| 170 // Lists the redirects that occurred on the way to the current page. The | 170 // Lists the redirects that occurred on the way to the current page. The |
| 171 // current page is the last one in the list (so even when there's no redirect, | 171 // current page is the last one in the list (so even when there's no redirect, |
| 172 // there will be one entry in the list). | 172 // there will be one entry in the list). |
| 173 virtual const std::vector<GURL>& GetRedirectChain() = 0; | 173 virtual const std::vector<GURL>& GetRedirectChain() = 0; |
| 174 | 174 |
| 175 // Whether the navigation has committed. Navigations that end up being | 175 // Whether the navigation has committed. Navigations that end up being |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 // The NavigationData that the embedder returned from | 282 // The NavigationData that the embedder returned from |
| 283 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 283 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 284 // be a clone of the NavigationData. | 284 // be a clone of the NavigationData. |
| 285 virtual NavigationData* GetNavigationData() = 0; | 285 virtual NavigationData* GetNavigationData() = 0; |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 } // namespace content | 288 } // namespace content |
| 289 | 289 |
| 290 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 290 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |