| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 // yet. The connection info may change during the navigation (e.g. after | 227 // yet. The connection info may change during the navigation (e.g. after |
| 228 // encountering a server redirect). | 228 // encountering a server redirect). |
| 229 virtual net::HttpResponseInfo::ConnectionInfo GetConnectionInfo() = 0; | 229 virtual net::HttpResponseInfo::ConnectionInfo GetConnectionInfo() = 0; |
| 230 | 230 |
| 231 // Resumes a navigation that was previously deferred by a NavigationThrottle. | 231 // Resumes a navigation that was previously deferred by a NavigationThrottle. |
| 232 // Note: this may lead to the deletion of the NavigationHandle and its | 232 // Note: this may lead to the deletion of the NavigationHandle and its |
| 233 // associated NavigationThrottles. | 233 // associated NavigationThrottles. |
| 234 virtual void Resume() = 0; | 234 virtual void Resume() = 0; |
| 235 | 235 |
| 236 // Cancels a navigation that was previously deferred by a NavigationThrottle. | 236 // Cancels a navigation that was previously deferred by a NavigationThrottle. |
| 237 // |result| should be equal to NavigationThrottle::CANCEL or | 237 // |result| should be equal to either: |
| 238 // NavigationThrottle::CANCEL_AND_IGNORE. | 238 // - NavigationThrottle::CANCEL, |
| 239 // - NavigationThrottle::CANCEL_AND_IGNORE, or |
| 240 // - NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. |
| 239 // Note: this may lead to the deletion of the NavigationHandle and its | 241 // Note: this may lead to the deletion of the NavigationHandle and its |
| 240 // associated NavigationThrottles. | 242 // associated NavigationThrottles. |
| 241 virtual void CancelDeferredNavigation( | 243 virtual void CancelDeferredNavigation( |
| 242 NavigationThrottle::ThrottleCheckResult result) = 0; | 244 NavigationThrottle::ThrottleCheckResult result) = 0; |
| 243 | 245 |
| 244 // Returns the ID of the URLRequest associated with this navigation. Can only | 246 // Returns the ID of the URLRequest associated with this navigation. Can only |
| 245 // be called from NavigationThrottle::WillProcessResponse and | 247 // be called from NavigationThrottle::WillProcessResponse and |
| 246 // WebContentsObserver::ReadyToCommitNavigation. | 248 // WebContentsObserver::ReadyToCommitNavigation. |
| 247 // In the case of transfer navigations, this is the ID of the first request | 249 // In the case of transfer navigations, this is the ID of the first request |
| 248 // made. The transferred request's ID will not be tracked by the | 250 // made. The transferred request's ID will not be tracked by the |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 298 |
| 297 // The NavigationData that the embedder returned from | 299 // The NavigationData that the embedder returned from |
| 298 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 300 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 299 // be a clone of the NavigationData. | 301 // be a clone of the NavigationData. |
| 300 virtual NavigationData* GetNavigationData() = 0; | 302 virtual NavigationData* GetNavigationData() = 0; |
| 301 }; | 303 }; |
| 302 | 304 |
| 303 } // namespace content | 305 } // namespace content |
| 304 | 306 |
| 305 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 307 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |