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_THROTTLE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 16 matching lines...) Expand all Loading... |
27 DEFER, | 27 DEFER, |
28 | 28 |
29 // Cancels the navigation. | 29 // Cancels the navigation. |
30 CANCEL, | 30 CANCEL, |
31 | 31 |
32 // Cancels the navigation and makes the requester of the navigation acts | 32 // Cancels the navigation and makes the requester of the navigation acts |
33 // like the request was never made. | 33 // like the request was never made. |
34 CANCEL_AND_IGNORE, | 34 CANCEL_AND_IGNORE, |
35 | 35 |
36 // Blocks a navigation due to rules asserted before the request is made. | 36 // Blocks a navigation due to rules asserted before the request is made. |
37 // This can only be returned from WillStartRequest. This will result in an | 37 // This can only be returned from WillStartRequest and also from |
| 38 // WillRedirectRequest when PlzNavigate is enabled. This will result in an |
38 // error page for net::ERR_BLOCKED_BY_CLIENT being loaded in the frame that | 39 // error page for net::ERR_BLOCKED_BY_CLIENT being loaded in the frame that |
39 // is navigated. | 40 // is navigated. |
40 BLOCK_REQUEST, | 41 BLOCK_REQUEST, |
41 | 42 |
42 // Blocks a navigation due to rules asserted by a response (for instance, | 43 // Blocks a navigation due to rules asserted by a response (for instance, |
43 // embedding restrictions like 'X-Frame-Options'). This result will only | 44 // embedding restrictions like 'X-Frame-Options'). This result will only |
44 // be returned from WillProcessResponse. | 45 // be returned from WillProcessResponse. |
45 BLOCK_RESPONSE, | 46 BLOCK_RESPONSE, |
46 }; | 47 }; |
47 | 48 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 // navigation. | 81 // navigation. |
81 NavigationHandle* navigation_handle() const { return navigation_handle_; } | 82 NavigationHandle* navigation_handle() const { return navigation_handle_; } |
82 | 83 |
83 private: | 84 private: |
84 NavigationHandle* navigation_handle_; | 85 NavigationHandle* navigation_handle_; |
85 }; | 86 }; |
86 | 87 |
87 } // namespace content | 88 } // namespace content |
88 | 89 |
89 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_ | 90 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_ |
OLD | NEW |