Chromium Code Reviews| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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(RenderFrameHost* render_frame_host) = 0; |
| 208 | 208 |
| 209 // Set |has_user_gesture_|. | |
| 210 virtual void SetHasUserGestureForTesting(bool has_user_gesture) = 0; | |
|
clamy
2016/09/01 18:26:42
This doesn't seem necessary. Just call CallWillSta
trizzofo
2016/09/01 21:02:45
Done. Thanks!
| |
| 211 | |
| 209 // The NavigationData that the embedder returned from | 212 // The NavigationData that the embedder returned from |
| 210 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 213 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 211 // be a clone of the NavigationData. | 214 // be a clone of the NavigationData. |
| 212 virtual NavigationData* GetNavigationData() = 0; | 215 virtual NavigationData* GetNavigationData() = 0; |
| 213 }; | 216 }; |
| 214 | 217 |
| 215 } // namespace content | 218 } // namespace content |
| 216 | 219 |
| 217 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 220 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |