[Media Router] Add integration tests and e2e tests for media router and presentation...
[chromium-blink-merge.git] / chrome / browser / banners / app_banner_data_fetcher_desktop.h
blob995d7b365556a5785965b3027542605b094af527
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_
8 #include "chrome/browser/banners/app_banner_data_fetcher.h"
10 namespace extensions {
11 class BookmarkAppHelper;
12 class Extension;
13 } // namespace extensions
15 namespace banners {
17 // Fetches data required to show a banner for the URL currently shown by the
18 // WebContents. Extends the regular fetch to support desktop web apps.
19 class AppBannerDataFetcherDesktop : public AppBannerDataFetcher {
20 public:
21 AppBannerDataFetcherDesktop(content::WebContents* web_contents,
22 base::WeakPtr<Delegate> weak_delegate,
23 int ideal_icon_size);
25 void ShowBanner(const SkBitmap* icon, const base::string16& title) override;
27 // Callback for finishing bookmark app creation
28 void FinishCreateBookmarkApp(const extensions::Extension* extension,
29 const WebApplicationInfo& web_app_info);
31 protected:
32 ~AppBannerDataFetcherDesktop() override;
34 private:
35 scoped_ptr<extensions::BookmarkAppHelper> bookmark_app_helper_;
37 DISALLOW_COPY_AND_ASSIGN(AppBannerDataFetcherDesktop);
40 } // namespace banners
42 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_DATA_FETCHER_DESKTOP_H_