Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: chrome/browser/banners/app_banner_manager_desktop.h

Issue 1308533006: webapps: allow callers of icon downloader/selector to specify a minimum size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webapps-splashscreen-icon
Patch Set: Fix non-compiling test Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_
7 7
8 #include "chrome/browser/banners/app_banner_manager.h" 8 #include "chrome/browser/banners/app_banner_manager.h"
9 9
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
11 11
12 namespace banners { 12 namespace banners {
13 13
14 class AppBannerManagerDesktop 14 class AppBannerManagerDesktop
15 : public AppBannerManager, 15 : public AppBannerManager,
16 public content::WebContentsUserData<AppBannerManagerDesktop> { 16 public content::WebContentsUserData<AppBannerManagerDesktop> {
17 17
18 public: 18 public:
19 static bool IsEnabled(); 19 static bool IsEnabled();
20 20
21 protected: 21 protected:
22 AppBannerDataFetcher* CreateAppBannerDataFetcher( 22 AppBannerDataFetcher* CreateAppBannerDataFetcher(
23 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate, 23 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate) override;
24 const int ideal_icon_size) override;
25 24
26 private: 25 private:
27 explicit AppBannerManagerDesktop(content::WebContents* web_contents); 26 explicit AppBannerManagerDesktop(content::WebContents* web_contents);
28 friend class content::WebContentsUserData<AppBannerManagerDesktop>; 27 friend class content::WebContentsUserData<AppBannerManagerDesktop>;
29 28
30 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerDesktop); 29 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerDesktop);
31 }; 30 };
32 31
33 } // namespace banners 32 } // namespace banners
34 33
35 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ 34 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698