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

Unified Diff: content/public/browser/navigation_throttle.cc

Issue 2867833002: NavigationThrottle: allow customization of net::Error when blocking
Patch Set: Add unit tests. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/navigation_throttle.cc
diff --git a/content/public/browser/navigation_throttle.cc b/content/public/browser/navigation_throttle.cc
index 5c795d655d2c63bd4f6d9f465553cf66f881d6bf..40f12de72e4c335d40bca44a2dc531638a5561e3 100644
--- a/content/public/browser/navigation_throttle.cc
+++ b/content/public/browser/navigation_throttle.cc
@@ -6,6 +6,17 @@
namespace content {
+bool NavigationThrottle::ThrottleCheckResult::operator==(
+ const NavigationThrottle::ThrottleCheckResult& rhs) const {
+ return (this->action_ == rhs.action_) &&
+ (this->net_error_code_ == rhs.net_error_code_);
+}
+
+bool NavigationThrottle::ThrottleCheckResult::operator!=(
+ const NavigationThrottle::ThrottleCheckResult& rhs) const {
+ return !(*this == rhs);
+}
+
NavigationThrottle::NavigationThrottle(NavigationHandle* navigation_handle)
: navigation_handle_(navigation_handle) {}

Powered by Google App Engine
This is Rietveld 408576698