Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Side by Side Diff: content/public/browser/navigation_throttle.h

Issue 2698623006: PlzNavigate: add support for BLOCK_REQUEST during redirects (Closed)
Patch Set: Abandon support of BLOCK_REQUEST on redirect without PlzNavigate. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698