| Index: chrome/browser/banners/app_banner_data_fetcher_desktop.h
|
| diff --git a/chrome/browser/banners/app_banner_data_fetcher_desktop.h b/chrome/browser/banners/app_banner_data_fetcher_desktop.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0c2ae5537c0bf210020ee5c0878d986dd85dd272
|
| --- /dev/null
|
| +++ b/chrome/browser/banners/app_banner_data_fetcher_desktop.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2015 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_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_
|
| +#define CHROME_BROWSER_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_
|
| +
|
| +#include "chrome/browser/banners/app_banner_data_fetcher.h"
|
| +
|
| +namespace extensions {
|
| +class BookmarkAppHelper;
|
| +class Extension;
|
| +} // namespace extensions
|
| +
|
| +namespace infobars {
|
| +class InfoBar;
|
| +} // namespace infobars
|
| +
|
| +namespace banners {
|
| +
|
| +// Fetches data required to show a banner for the URL currently shown by the
|
| +// WebContents. Extends the regular fetch to support desktop web apps.
|
| +class AppBannerDataFetcherDesktop : public AppBannerDataFetcher {
|
| + public:
|
| + AppBannerDataFetcherDesktop(content::WebContents* web_contents,
|
| + base::WeakPtr<Delegate> weak_delegate,
|
| + int ideal_icon_size);
|
| +
|
| + void ShowBanner(const SkBitmap* icon, const base::string16& title) override;
|
| +
|
| + // Callback for finishing bookmark app creation
|
| + void FinishCreateBookmarkApp(const extensions::Extension* extension,
|
| + const WebApplicationInfo& web_app_info);
|
| +
|
| + protected:
|
| + ~AppBannerDataFetcherDesktop() override;
|
| +
|
| + private:
|
| + scoped_ptr<extensions::BookmarkAppHelper> bookmark_app_helper_;
|
| + DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherDesktop);
|
| +};
|
| +
|
| +} // namespace banners
|
| +
|
| +#endif // CHROME_BROWSER_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_
|
|
|