| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // If PlzNavigate is active, the RenderFrameHost returned will be the final | 142 // If PlzNavigate is active, the RenderFrameHost returned will be the final |
| 143 // host for the navigation. If PlzNavigate is inactive, the navigation may | 143 // host for the navigation. If PlzNavigate is inactive, the navigation may |
| 144 // transfer to a new host up until the point that DidFinishNavigation is | 144 // transfer to a new host up until the point that DidFinishNavigation is |
| 145 // called. | 145 // called. |
| 146 virtual RenderFrameHost* GetRenderFrameHost() = 0; | 146 virtual RenderFrameHost* GetRenderFrameHost() = 0; |
| 147 | 147 |
| 148 // Whether the navigation happened in the same page. Examples of same page | 148 // Whether the navigation happened in the same page. Examples of same page |
| 149 // navigations are: | 149 // navigations are: |
| 150 // * reference fragment navigations | 150 // * reference fragment navigations |
| 151 // * pushState/replaceState | 151 // * pushState/replaceState |
| 152 // * same page history navigation |
| 152 virtual bool IsSamePage() = 0; | 153 virtual bool IsSamePage() = 0; |
| 153 | 154 |
| 154 // Whether the navigation has encountered a server redirect or not. | 155 // Whether the navigation has encountered a server redirect or not. |
| 155 virtual bool WasServerRedirect() = 0; | 156 virtual bool WasServerRedirect() = 0; |
| 156 | 157 |
| 157 // Whether the navigation has committed. This returns true for either | 158 // Whether the navigation has committed. This returns true for either |
| 158 // successful commits or error pages that replace the previous page | 159 // successful commits or error pages that replace the previous page |
| 159 // (distinguished by |IsErrorPage|), and false for errors that leave the user | 160 // (distinguished by |IsErrorPage|), and false for errors that leave the user |
| 160 // on the previous page. | 161 // on the previous page. |
| 161 virtual bool HasCommitted() = 0; | 162 virtual bool HasCommitted() = 0; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 246 |
| 246 // The NavigationData that the embedder returned from | 247 // The NavigationData that the embedder returned from |
| 247 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 248 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 248 // be a clone of the NavigationData. | 249 // be a clone of the NavigationData. |
| 249 virtual NavigationData* GetNavigationData() = 0; | 250 virtual NavigationData* GetNavigationData() = 0; |
| 250 }; | 251 }; |
| 251 | 252 |
| 252 } // namespace content | 253 } // namespace content |
| 253 | 254 |
| 254 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 255 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |