#include "components/services/app_service/public/cpp/app_update.h"
#include "base/check.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/time/time.h"
#include "components/services/app_service/public/cpp/icon_effects.h"
#include "components/services/app_service/public/cpp/icon_types.h"
#include "components/services/app_service/public/cpp/intent_filter_util.h"
#include "components/services/app_service/public/cpp/macros.h"
#include "components/services/app_service/public/cpp/run_on_os_login_types.h"
#include "components/services/app_service/public/cpp/types_util.h"
namespace apps {
namespace {
static const std::vector<std::string>& EmptyStringVector() { … }
std::optional<apps::RunOnOsLogin> CloneRunOnOsLogin(
const apps::RunOnOsLogin& login_data) { … }
std::string FormatBytes(std::optional<uint64_t> bytes) { … }
void MergeIconKeyDelta(App* new_delta, App* delta) { … }
std::optional<apps::IconKey> MergeIconKey(const App* state, const App* delta) { … }
bool MergeWithoutIconKey(App* state, const App* delta) { … }
}
void AppUpdate::MergeDelta(App* new_delta, App* delta) { … }
void AppUpdate::Merge(App* state, const App* delta) { … }
bool AppUpdate::IsChanged(const App* state, const App* delta) { … }
AppUpdate::AppUpdate(const App* state,
const App* delta,
const ::AccountId& account_id)
: … { … }
bool AppUpdate::StateIsNull() const { … }
apps::AppType AppUpdate::AppType() const { … }
const std::string& AppUpdate::AppId() const { … }
apps::Readiness AppUpdate::Readiness() const { … }
apps::Readiness AppUpdate::PriorReadiness() const { … }
bool AppUpdate::ReadinessChanged() const { … }
const std::string& AppUpdate::Name() const { … }
bool AppUpdate::NameChanged() const { … }
const std::string& AppUpdate::ShortName() const { … }
bool AppUpdate::ShortNameChanged() const { … }
const std::string& AppUpdate::PublisherId() const { … }
bool AppUpdate::PublisherIdChanged() const { … }
const std::optional<PackageId> AppUpdate::InstallerPackageId() const { … }
bool AppUpdate::InstallerPackageIdChanged() const { … }
const std::string& AppUpdate::Description() const { … }
bool AppUpdate::DescriptionChanged() const { … }
const std::string& AppUpdate::Version() const { … }
bool AppUpdate::VersionChanged() const { … }
const std::vector<std::string>& AppUpdate::AdditionalSearchTerms() const { … }
bool AppUpdate::AdditionalSearchTermsChanged() const { … }
std::optional<apps::IconKey> AppUpdate::IconKey() const { … }
bool AppUpdate::IconKeyChanged() const { … }
base::Time AppUpdate::LastLaunchTime() const { … }
bool AppUpdate::LastLaunchTimeChanged() const { … }
base::Time AppUpdate::InstallTime() const { … }
bool AppUpdate::InstallTimeChanged() const { … }
apps::Permissions AppUpdate::Permissions() const { … }
bool AppUpdate::PermissionsChanged() const { … }
apps::InstallReason AppUpdate::InstallReason() const { … }
bool AppUpdate::InstallReasonChanged() const { … }
apps::InstallSource AppUpdate::InstallSource() const { … }
bool AppUpdate::InstallSourceChanged() const { … }
const std::vector<std::string>& AppUpdate::PolicyIds() const { … }
bool AppUpdate::PolicyIdsChanged() const { … }
bool AppUpdate::InstalledInternally() const { … }
std::optional<bool> AppUpdate::IsPlatformApp() const { … }
bool AppUpdate::IsPlatformAppChanged() const { … }
std::optional<bool> AppUpdate::Recommendable() const { … }
bool AppUpdate::RecommendableChanged() const { … }
std::optional<bool> AppUpdate::Searchable() const { … }
bool AppUpdate::SearchableChanged() const { … }
std::optional<bool> AppUpdate::ShowInLauncher() const { … }
bool AppUpdate::ShowInLauncherChanged() const { … }
std::optional<bool> AppUpdate::ShowInShelf() const { … }
bool AppUpdate::ShowInShelfChanged() const { … }
std::optional<bool> AppUpdate::ShowInSearch() const { … }
bool AppUpdate::ShowInSearchChanged() const { … }
std::optional<bool> AppUpdate::ShowInManagement() const { … }
bool AppUpdate::ShowInManagementChanged() const { … }
std::optional<bool> AppUpdate::HandlesIntents() const { … }
bool AppUpdate::HandlesIntentsChanged() const { … }
std::optional<bool> AppUpdate::AllowUninstall() const { … }
bool AppUpdate::AllowUninstallChanged() const { … }
std::optional<bool> AppUpdate::HasBadge() const { … }
bool AppUpdate::HasBadgeChanged() const { … }
std::optional<bool> AppUpdate::Paused() const { … }
bool AppUpdate::PausedChanged() const { … }
apps::IntentFilters AppUpdate::IntentFilters() const { … }
bool AppUpdate::IntentFiltersChanged() const { … }
std::optional<bool> AppUpdate::ResizeLocked() const { … }
bool AppUpdate::ResizeLockedChanged() const { … }
std::optional<bool> AppUpdate::AllowWindowModeSelection() const { … }
bool AppUpdate::AllowWindowModeSelectionChanged() const { … }
apps::WindowMode AppUpdate::WindowMode() const { … }
bool AppUpdate::WindowModeChanged() const { … }
std::optional<apps::RunOnOsLogin> AppUpdate::RunOnOsLogin() const { … }
bool AppUpdate::RunOnOsLoginChanged() const { … }
std::optional<bool> AppUpdate::AllowClose() const { … }
bool AppUpdate::AllowCloseChanged() const { … }
const ::AccountId& AppUpdate::AccountId() const { … }
std::optional<uint64_t> AppUpdate::AppSizeInBytes() const { … }
bool AppUpdate::AppSizeInBytesChanged() const { … }
std::optional<uint64_t> AppUpdate::DataSizeInBytes() const { … }
bool AppUpdate::DataSizeInBytesChanged() const { … }
const std::vector<std::string>& AppUpdate::SupportedLocales() const { … }
bool AppUpdate::SupportedLocalesChanged() const { … }
std::optional<std::string> AppUpdate::SelectedLocale() const { … }
bool AppUpdate::SelectedLocaleChanged() const { … }
std::optional<base::Value::Dict> AppUpdate::Extra() const { … }
bool AppUpdate::ExtraChanged() const { … }
std::ostream& operator<<(std::ostream& out, const AppUpdate& app) { … }
}