| 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..42828911059df50ab5abbfd8b58285ffd49b09be 100644
|
| --- a/content/public/browser/navigation_throttle.cc
|
| +++ b/content/public/browser/navigation_throttle.cc
|
| @@ -6,6 +6,20 @@
|
|
|
| namespace content {
|
|
|
| +static_assert(sizeof(NavigationThrottle::ThrottleCheckResult) == 4,
|
| + "ThrottleCheckResult is meant to be a 32-bit value");
|
| +
|
| +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) {}
|
|
|
|
|