blob: a433ba5f3ecd4814c1297d0b0a209f447e724b03 [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_ICON_WAITER_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_ICON_WAITER_H_
#include "base/run_loop.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_utils.h"
class WebAppIconWaiter {
public:
explicit WebAppIconWaiter(Profile* profile, const web_app::AppId& app_id);
void Wait();
private:
void OnFaviconRead(const web_app::AppId& app_id);
const web_app::AppId& app_id_;
base::RunLoop run_loop_;
};
#endif // CHROME_BROWSER_WEB_APPLICATIONS_TEST_WEB_APP_ICON_WAITER_H_