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 WillRedirectRequest. |
38 // error page for net::ERR_BLOCKED_BY_CLIENT being loaded in the frame that | 38 // This will result in an error page for net::ERR_BLOCKED_BY_CLIENT being |
39 // is navigated. | 39 // loaded in the frame that is navigated. |
40 BLOCK_REQUEST, | 40 BLOCK_REQUEST, |
41 | 41 |
42 // Blocks a navigation due to rules asserted by a response (for instance, | 42 // Blocks a navigation due to rules asserted by a response (for instance, |
43 // embedding restrictions like 'X-Frame-Options'). This result will only | 43 // embedding restrictions like 'X-Frame-Options'). This result will only |
44 // be returned from WillProcessResponse. | 44 // be returned from WillProcessResponse. |
45 BLOCK_RESPONSE, | 45 BLOCK_RESPONSE, |
46 }; | 46 }; |
47 | 47 |
48 NavigationThrottle(NavigationHandle* navigation_handle); | 48 NavigationThrottle(NavigationHandle* navigation_handle); |
49 virtual ~NavigationThrottle(); | 49 virtual ~NavigationThrottle(); |
(...skipping 30 matching lines...) Expand all Loading... |
80 // navigation. | 80 // navigation. |
81 NavigationHandle* navigation_handle() const { return navigation_handle_; } | 81 NavigationHandle* navigation_handle() const { return navigation_handle_; } |
82 | 82 |
83 private: | 83 private: |
84 NavigationHandle* navigation_handle_; | 84 NavigationHandle* navigation_handle_; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace content | 87 } // namespace content |
88 | 88 |
89 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_ | 89 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_THROTTLE_H_ |
OLD | NEW |