| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 RenderFrameHost* render_frame_host, | 271 RenderFrameHost* render_frame_host, |
| 272 const std::string& raw_response_headers) = 0; | 272 const std::string& raw_response_headers) = 0; |
| 273 | 273 |
| 274 // Simulates the navigation being committed. | 274 // Simulates the navigation being committed. |
| 275 virtual void CallDidCommitNavigationForTesting(const GURL& url) = 0; | 275 virtual void CallDidCommitNavigationForTesting(const GURL& url) = 0; |
| 276 | 276 |
| 277 // The NavigationData that the embedder returned from | 277 // The NavigationData that the embedder returned from |
| 278 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 278 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 279 // be a clone of the NavigationData. | 279 // be a clone of the NavigationData. |
| 280 virtual NavigationData* GetNavigationData() = 0; | 280 virtual NavigationData* GetNavigationData() = 0; |
| 281 |
| 282 // This method is designed to be used for the Call*ForTesting methods, where |
| 283 // the decision to cancel is deferred and calculated asynchronously. In those |
| 284 // cases, this method will return true once CancelDeferredNavigation is |
| 285 // called. |
| 286 virtual bool IsCancellingForTesting() = 0; |
| 281 }; | 287 }; |
| 282 | 288 |
| 283 } // namespace content | 289 } // namespace content |
| 284 | 290 |
| 285 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 291 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |