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

Unified Diff: chrome/browser/android/banners/app_banner_infobar_delegate_android.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/banners/app_banner_infobar_delegate_android.h
diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
index 92d5bdd0aeb2ffd3dca134ff6ca9b3c4fa6f7454..f41032b0f35ba14499e5348d591f50be638c1c80 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
@@ -5,12 +5,14 @@
#ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_
#define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_
+#include <memory>
+#include <string>
+
#include "base/android/scoped_java_ref.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "chrome/browser/android/webapk/webapk_metrics.h"
-#include "chrome/browser/banners/app_banner_manager.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "ui/gfx/image/image.h"
#include "url/gurl.h"
@@ -28,6 +30,8 @@ struct ShortcutInfo;
namespace banners {
+class AppBannerManager;
+
// Manages installation of an app being promoted by a page.
class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
public:
@@ -115,8 +119,7 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
// function launches the installed WebAPK and returns true.
bool AcceptWebApk(content::WebContents* web_contents);
- void SendBannerAccepted(content::WebContents* web_contents,
- const std::string& platform);
+ void SendBannerAccepted();
void OnWebApkInstallFinished(bool success, const std::string& webapk_package);
void TrackWebApkInstallationDismissEvents(InstallState install_state);

Powered by Google App Engine
This is Rietveld 408576698