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
37
38
39
ash / public / cpp / wallpaper / online_wallpaper_variant.cc [blame]
// Copyright 2021 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/wallpaper/online_wallpaper_variant.h"
namespace ash {
OnlineWallpaperVariant::OnlineWallpaperVariant(
uint64_t in_asset_id,
const GURL& in_raw_url,
backdrop::Image::ImageType in_type)
: asset_id(in_asset_id), raw_url(in_raw_url), type(in_type) {
DCHECK(!raw_url.is_empty());
}
OnlineWallpaperVariant::OnlineWallpaperVariant(
const OnlineWallpaperVariant& other) = default;
OnlineWallpaperVariant::OnlineWallpaperVariant(OnlineWallpaperVariant&& other) =
default;
OnlineWallpaperVariant& OnlineWallpaperVariant::operator=(
const OnlineWallpaperVariant& other) = default;
bool OnlineWallpaperVariant::operator==(
const OnlineWallpaperVariant& other) const {
return (asset_id == other.asset_id) && (raw_url == other.raw_url) &&
(type == other.type);
}
bool OnlineWallpaperVariant::operator!=(
const OnlineWallpaperVariant& other) const {
return !(*this == other);
}
OnlineWallpaperVariant::~OnlineWallpaperVariant() = default;
} // namespace ash