1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ash / public / cpp / holding_space / holding_space_file.cc [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/public/cpp/holding_space/holding_space_file.h"
namespace ash {
HoldingSpaceFile::HoldingSpaceFile(const base::FilePath& file_path,
FileSystemType file_system_type,
const GURL& file_system_url)
: file_path(file_path),
file_system_type(file_system_type),
file_system_url(file_system_url) {}
HoldingSpaceFile::HoldingSpaceFile(const HoldingSpaceFile&) = default;
HoldingSpaceFile::HoldingSpaceFile(HoldingSpaceFile&&) = default;
HoldingSpaceFile& HoldingSpaceFile::operator=(const HoldingSpaceFile&) =
default;
HoldingSpaceFile& HoldingSpaceFile::operator=(HoldingSpaceFile&&) = default;
HoldingSpaceFile::~HoldingSpaceFile() = default;
bool HoldingSpaceFile::operator==(const HoldingSpaceFile& rhs) const {
return std::tie(file_path, file_system_type, file_system_url) ==
std::tie(rhs.file_path, rhs.file_system_type, rhs.file_system_url);
}
bool HoldingSpaceFile::operator!=(const HoldingSpaceFile& rhs) const {
return !(*this == rhs);
}
} // namespace ash