Only grant permissions to new extensions from sync if they have the expected version
[chromium-blink-merge.git] / chrome / browser / banners / app_banner_manager_desktop.h
blob26347edc8da389f62a18ff3953ea3dc06f7221a0
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_MANAGER_DESKTOP_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_
8 #include "chrome/browser/banners/app_banner_manager.h"
10 #include "content/public/browser/web_contents_user_data.h"
12 namespace banners {
14 class AppBannerManagerDesktop
15 : public AppBannerManager,
16 public content::WebContentsUserData<AppBannerManagerDesktop> {
18 public:
19 static bool IsEnabled();
21 protected:
22 AppBannerDataFetcher* CreateAppBannerDataFetcher(
23 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate,
24 const int ideal_icon_size) override;
26 private:
27 explicit AppBannerManagerDesktop(content::WebContents* web_contents);
28 friend class content::WebContentsUserData<AppBannerManagerDesktop>;
30 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerDesktop);
33 } // namespace banners
35 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_