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

Side by Side Diff: chrome/browser/android/banners/app_banner_manager_android.h

Issue 2951763003: Implement experimental app banner flow.
Patch Set: Browser test compile Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/android/banners/app_banner_manager_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/banners/app_banner_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698