OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #include "components/image_fetcher/request_metadata.h" | 5 #include "components/image_fetcher/request_metadata.h" |
6 | 6 |
7 namespace image_fetcher { | 7 namespace image_fetcher { |
8 | 8 |
9 bool operator==(const RequestMetadata& lhs, const RequestMetadata& rhs) { | 9 bool operator==(const RequestMetadata& lhs, const RequestMetadata& rhs) { |
10 return lhs.mime_type == rhs.mime_type; | 10 return lhs.mime_type == rhs.mime_type && |
| 11 lhs.response_code == rhs.response_code; |
11 } | 12 } |
12 | 13 |
13 bool operator!=(const RequestMetadata& lhs, const RequestMetadata& rhs) { | 14 bool operator!=(const RequestMetadata& lhs, const RequestMetadata& rhs) { |
14 return !(lhs == rhs); | 15 return !(lhs == rhs); |
15 } | 16 } |
16 | 17 |
17 } // namespace image_fetcher | 18 } // namespace image_fetcher |
OLD | NEW |