| 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_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 int GetIdealPrimaryIconSizeInPx() override; | 81 int GetIdealPrimaryIconSizeInPx() override; |
| 82 int GetMinimumPrimaryIconSizeInPx() override; | 82 int GetMinimumPrimaryIconSizeInPx() override; |
| 83 bool IsWebAppInstalled(content::BrowserContext* browser_context, | 83 bool IsWebAppInstalled(content::BrowserContext* browser_context, |
| 84 const GURL& start_url, | 84 const GURL& start_url, |
| 85 const GURL& manifest_url) override; | 85 const GURL& manifest_url) override; |
| 86 InstallableParams ParamsToPerformInstallableCheck() override; | 86 InstallableParams ParamsToPerformInstallableCheck() override; |
| 87 void PerformInstallableCheck() override; | 87 void PerformInstallableCheck() override; |
| 88 void OnDidPerformInstallableCheck(const InstallableData& result) override; | 88 void OnDidPerformInstallableCheck(const InstallableData& result) override; |
| 89 void OnAppIconFetched(const SkBitmap& bitmap) override; | 89 void OnAppIconFetched(const SkBitmap& bitmap) override; |
| 90 void ResetCurrentPageData() override; | 90 void ResetCurrentPageData() override; |
| 91 void ShowBanner() override; | 91 void ShowBannerUI() override; |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 friend class content::WebContentsUserData<AppBannerManagerAndroid>; | 94 friend class content::WebContentsUserData<AppBannerManagerAndroid>; |
| 95 | 95 |
| 96 // Creates the Java-side AppBannerManager. | 96 // Creates the Java-side AppBannerManager. |
| 97 void CreateJavaBannerManager(); | 97 void CreateJavaBannerManager(); |
| 98 | 98 |
| 99 // Returns true if |platform| and |id| are valid for querying the Play Store. | 99 // Returns true if |platform| and |id| are valid for querying the Play Store. |
| 100 bool CheckPlatformAndId(const std::string& platform, | 100 bool CheckPlatformAndId(const std::string& platform, |
| 101 const std::string& id); | 101 const std::string& id); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 130 | 130 |
| 131 // Whether WebAPKs can be installed. | 131 // Whether WebAPKs can be installed. |
| 132 bool can_install_webapk_; | 132 bool can_install_webapk_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); | 134 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace banners | 137 } // namespace banners |
| 138 | 138 |
| 139 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ | 139 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ |
| OLD | NEW |