OLD | NEW |
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 "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/public/browser/web_contents_user_data.h" | 11 #include "content/public/browser/web_contents_user_data.h" |
12 | 12 |
13 namespace banners { | 13 namespace banners { |
14 | 14 |
15 class AppBannerManagerDesktop | 15 class AppBannerManagerDesktop |
16 : public AppBannerManager, | 16 : public AppBannerManager, |
17 public content::WebContentsUserData<AppBannerManagerDesktop> { | 17 public content::WebContentsUserData<AppBannerManagerDesktop> { |
18 | 18 |
19 public: | 19 public: |
20 static bool IsEnabled(); | 20 static bool IsEnabled(); |
21 | 21 |
22 protected: | 22 protected: |
23 AppBannerDataFetcher* CreateAppBannerDataFetcher( | 23 AppBannerDataFetcher* CreateAppBannerDataFetcher( |
24 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate) override; | 24 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate, |
| 25 bool is_debug_mode) override; |
25 | 26 |
26 private: | 27 private: |
27 explicit AppBannerManagerDesktop(content::WebContents* web_contents); | 28 explicit AppBannerManagerDesktop(content::WebContents* web_contents); |
28 friend class content::WebContentsUserData<AppBannerManagerDesktop>; | 29 friend class content::WebContentsUserData<AppBannerManagerDesktop>; |
29 | 30 |
30 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerDesktop); | 31 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerDesktop); |
31 }; | 32 }; |
32 | 33 |
33 } // namespace banners | 34 } // namespace banners |
34 | 35 |
35 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ | 36 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_DESKTOP_H_ |
OLD | NEW |