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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/public/browser/navigation_throttle.h" | 9 #include "content/public/browser/navigation_throttle.h" |
| 10 #include "content/public/common/referrer.h" | 10 #include "content/public/common/referrer.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 bool has_user_gesture, | 159 bool has_user_gesture, |
| 160 ui::PageTransition transition, | 160 ui::PageTransition transition, |
| 161 bool is_external_protocol) = 0; | 161 bool is_external_protocol) = 0; |
| 162 | 162 |
| 163 // Simulates the network request being redirected. | 163 // Simulates the network request being redirected. |
| 164 virtual NavigationThrottle::ThrottleCheckResult | 164 virtual NavigationThrottle::ThrottleCheckResult |
| 165 CallWillRedirectRequestForTesting(const GURL& new_url, | 165 CallWillRedirectRequestForTesting(const GURL& new_url, |
| 166 bool new_method_is_post, | 166 bool new_method_is_post, |
| 167 const GURL& new_referrer_url, | 167 const GURL& new_referrer_url, |
| 168 bool new_is_external_protocol) = 0; | 168 bool new_is_external_protocol) = 0; |
| 169 | |
| 170 // Whether the navigation requested a LoFi version of the resource or not | |
|
bengr
2016/02/26 22:53:58
All comments should be complete sentences. At the
RyanSturm
2016/03/01 19:36:04
Done.
| |
| 171 virtual bool IsUsingLofi() = 0; | |
|
bengr
2016/02/26 22:53:57
This should probably be a const method.
RyanSturm
2016/03/01 19:36:04
Done.
| |
| 172 | |
| 173 // Whether this navigation fetched it's resource through DataReductionProxy | |
|
bengr
2016/02/26 22:53:58
Wrong "its."
| |
| 174 virtual bool WasFetchedViaDataReductionProxy() = 0; | |
|
bengr
2016/02/26 22:53:58
Also const.
RyanSturm
2016/03/01 19:36:04
Done.
| |
| 169 }; | 175 }; |
| 170 | 176 |
| 171 } // namespace content | 177 } // namespace content |
| 172 | 178 |
| 173 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 179 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |