#include "chrome/browser/apps/app_service/app_registry_cache_waiter.h"
#include <string>
#include "base/functional/bind.h"
#include "chrome/browser/apps/app_service/app_service_proxy.h"
#include "chrome/browser/apps/app_service/app_service_proxy_factory.h"
#include "components/services/app_service/public/cpp/intent_filter_util.h"
namespace apps {
namespace {
bool ContainsExpectedScopeIntentFilter(GURL scope,
const apps::AppUpdate& update) { … }
}
AppTypeInitializationWaiter::AppTypeInitializationWaiter(Profile* profile,
apps::AppType app_type)
: … { … }
AppTypeInitializationWaiter::~AppTypeInitializationWaiter() = default;
void AppTypeInitializationWaiter::Await(const base::Location& location) { … }
void AppTypeInitializationWaiter::OnAppUpdate(const apps::AppUpdate& update) { … }
void AppTypeInitializationWaiter::OnAppTypeInitialized(apps::AppType app_type) { … }
void AppTypeInitializationWaiter::OnAppRegistryCacheWillBeDestroyed(
apps::AppRegistryCache* cache) { … }
AppUpdateWaiter::AppUpdateWaiter(
Profile* profile,
const std::string& app_id,
base::RepeatingCallback<bool(const apps::AppUpdate&)> condition)
: … { … }
AppUpdateWaiter::~AppUpdateWaiter() = default;
void AppUpdateWaiter::Await(const base::Location& location) { … }
void AppUpdateWaiter::OnAppUpdate(const apps::AppUpdate& update) { … }
void AppUpdateWaiter::OnAppRegistryCacheWillBeDestroyed(
apps::AppRegistryCache* cache) { … }
AppReadinessWaiter::AppReadinessWaiter(
Profile* profile,
const std::string& app_id,
base::RepeatingCallback<bool(apps::Readiness)> readiness_condition)
: … { … }
AppReadinessWaiter::AppReadinessWaiter(Profile* profile,
const std::string& app_id,
apps::Readiness readiness)
: … { … }
WebAppScopeWaiter::WebAppScopeWaiter(Profile* profile,
const std::string& app_id,
GURL scope)
: … { … }
AppWindowModeWaiter::AppWindowModeWaiter(Profile* profile,
const std::string& app_id,
apps::WindowMode window_mode)
: … { … }
}