| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_EMULATION_H_ | |
| 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_EMULATION_H_ | |
| 7 | |
| 8 #include "chrome/browser/banners/app_banner_manager.h" | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "content/public/browser/web_contents_user_data.h" | |
| 12 | |
| 13 namespace banners { | |
| 14 | |
| 15 class AppBannerManagerEmulation | |
| 16 : public AppBannerManager, | |
| 17 public content::WebContentsUserData<AppBannerManagerEmulation> { | |
| 18 | |
| 19 protected: | |
| 20 AppBannerDataFetcher* CreateAppBannerDataFetcher( | |
| 21 base::WeakPtr<AppBannerDataFetcher::Delegate> weak_delegate, | |
| 22 bool is_debug_mode) override; | |
| 23 | |
| 24 private: | |
| 25 explicit AppBannerManagerEmulation(content::WebContents* web_contents); | |
| 26 friend class content::WebContentsUserData<AppBannerManagerEmulation>; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerEmulation); | |
| 29 }; | |
| 30 | |
| 31 } // namespace banners | |
| 32 | |
| 33 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_MANAGER_EMULATION_H_ | |
| OLD | NEW |