1 // Copyright (c) 2011 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/history/core/browser/download_row.h" 6 7 #include "components/history/core/browser/download_constants.h" 8 9 namespace history { 10 11 DownloadRow::DownloadRow() = default; 12 DownloadRow::DownloadRow(const DownloadRow& other) = default; 13 DownloadRow::DownloadRow(DownloadRow&& other) = default; 14 DownloadRow::~DownloadRow() = default; 15 16 DownloadRow& DownloadRow::operator=(const DownloadRow& other) = default; 17 operator ==(const DownloadRow & rhs) const18bool DownloadRow::operator==(const DownloadRow& rhs) const { 19 return current_path == rhs.current_path && target_path == rhs.target_path && 20 url_chain == rhs.url_chain && referrer_url == rhs.referrer_url && 21 site_url == rhs.site_url && tab_url == rhs.tab_url && 22 tab_referrer_url == rhs.tab_referrer_url && 23 http_method == rhs.http_method && mime_type == rhs.mime_type && 24 original_mime_type == rhs.original_mime_type && 25 start_time == rhs.start_time && end_time == rhs.end_time && 26 etag == rhs.etag && last_modified == rhs.last_modified && 27 received_bytes == rhs.received_bytes && 28 total_bytes == rhs.total_bytes && state == rhs.state && 29 danger_type == rhs.danger_type && 30 interrupt_reason == rhs.interrupt_reason && hash == rhs.hash && 31 id == rhs.id && guid == rhs.guid && opened == rhs.opened && 32 last_access_time == rhs.last_access_time && 33 transient == rhs.transient && by_ext_id == rhs.by_ext_id && 34 by_ext_name == rhs.by_ext_name && 35 download_slice_info == rhs.download_slice_info; 36 } 37 38 } // namespace history 39