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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 197 |
198 // Simulates the network request being redirected. | 198 // Simulates the network request being redirected. |
199 virtual NavigationThrottle::ThrottleCheckResult | 199 virtual NavigationThrottle::ThrottleCheckResult |
200 CallWillRedirectRequestForTesting(const GURL& new_url, | 200 CallWillRedirectRequestForTesting(const GURL& new_url, |
201 bool new_method_is_post, | 201 bool new_method_is_post, |
202 const GURL& new_referrer_url, | 202 const GURL& new_referrer_url, |
203 bool new_is_external_protocol) = 0; | 203 bool new_is_external_protocol) = 0; |
204 | 204 |
205 // Simulates the reception of the network response. | 205 // Simulates the reception of the network response. |
206 virtual NavigationThrottle::ThrottleCheckResult | 206 virtual NavigationThrottle::ThrottleCheckResult |
207 CallWillProcessResponseForTesting(RenderFrameHost* render_frame_host) = 0; | 207 CallWillProcessResponseForTesting( |
| 208 RenderFrameHost* render_frame_host, |
| 209 const std::string& raw_response_headers) = 0; |
| 210 |
| 211 // Simulates the navigation being committed. |
| 212 virtual void CallDidCommitNavigationForTesting(const GURL& url) = 0; |
208 | 213 |
209 // The NavigationData that the embedder returned from | 214 // The NavigationData that the embedder returned from |
210 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 215 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
211 // be a clone of the NavigationData. | 216 // be a clone of the NavigationData. |
212 virtual NavigationData* GetNavigationData() = 0; | 217 virtual NavigationData* GetNavigationData() = 0; |
213 }; | 218 }; |
214 | 219 |
215 } // namespace content | 220 } // namespace content |
216 | 221 |
217 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 222 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
OLD | NEW |