| 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 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 ui::PageTransition transition, | 185 ui::PageTransition transition, |
| 186 bool is_external_protocol) = 0; | 186 bool is_external_protocol) = 0; |
| 187 | 187 |
| 188 // Simulates the network request being redirected. | 188 // Simulates the network request being redirected. |
| 189 virtual NavigationThrottle::ThrottleCheckResult | 189 virtual NavigationThrottle::ThrottleCheckResult |
| 190 CallWillRedirectRequestForTesting(const GURL& new_url, | 190 CallWillRedirectRequestForTesting(const GURL& new_url, |
| 191 bool new_method_is_post, | 191 bool new_method_is_post, |
| 192 const GURL& new_referrer_url, | 192 const GURL& new_referrer_url, |
| 193 bool new_is_external_protocol) = 0; | 193 bool new_is_external_protocol) = 0; |
| 194 | 194 |
| 195 // Simulates the reception of the network response. |
| 196 virtual NavigationThrottle::ThrottleCheckResult |
| 197 CallWillProcessResponseForTesting(RenderFrameHost* render_frame_host) = 0; |
| 198 |
| 195 // The NavigationData that the embedder returned from | 199 // The NavigationData that the embedder returned from |
| 196 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 200 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 197 // be a clone of the NavigationData. | 201 // be a clone of the NavigationData. |
| 198 virtual NavigationData* GetNavigationData() = 0; | 202 virtual NavigationData* GetNavigationData() = 0; |
| 199 }; | 203 }; |
| 200 | 204 |
| 201 } // namespace content | 205 } // namespace content |
| 202 | 206 |
| 203 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 207 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |