| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/image_fetcher/request_metadata.h" | |
| 6 | |
| 7 namespace image_fetcher { | |
| 8 | |
| 9 RequestMetadata::RequestMetadata() | |
| 10 : http_response_code(RESPONSE_CODE_INVALID), from_http_cache(false) {} | |
| 11 | |
| 12 bool operator==(const RequestMetadata& lhs, const RequestMetadata& rhs) { | |
| 13 return lhs.mime_type == rhs.mime_type && | |
| 14 lhs.http_response_code == rhs.http_response_code && | |
| 15 lhs.from_http_cache == rhs.from_http_cache; | |
| 16 } | |
| 17 | |
| 18 bool operator!=(const RequestMetadata& lhs, const RequestMetadata& rhs) { | |
| 19 return !(lhs == rhs); | |
| 20 } | |
| 21 | |
| 22 } // namespace image_fetcher | |
| OLD | NEW |