| 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_INFOBAR_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "chrome/browser/android/webapk/webapk_metrics.h" |
| 12 #include "chrome/browser/banners/app_banner_manager.h" | 13 #include "chrome/browser/banners/app_banner_manager.h" |
| 13 #include "components/infobars/core/confirm_infobar_delegate.h" | 14 #include "components/infobars/core/confirm_infobar_delegate.h" |
| 14 #include "ui/gfx/image/image.h" | 15 #include "ui/gfx/image/image.h" |
| 15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
| 16 | 17 |
| 17 namespace content { | 18 namespace content { |
| 18 class WebContents; | 19 class WebContents; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace infobars { | 22 namespace infobars { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 124 |
| 124 std::unique_ptr<SkBitmap> icon_; | 125 std::unique_ptr<SkBitmap> icon_; |
| 125 | 126 |
| 126 std::string native_app_package_; | 127 std::string native_app_package_; |
| 127 std::string referrer_; | 128 std::string referrer_; |
| 128 int event_request_id_; | 129 int event_request_id_; |
| 129 bool has_user_interaction_; | 130 bool has_user_interaction_; |
| 130 | 131 |
| 131 std::string webapk_package_name_; | 132 std::string webapk_package_name_; |
| 132 bool is_webapk_; | 133 bool is_webapk_; |
| 134 // Indicates the current state of a WebAPK installation. |
| 135 webapk::InstallState install_state_; |
| 133 | 136 |
| 134 base::WeakPtrFactory<AppBannerInfoBarDelegateAndroid> weak_ptr_factory_; | 137 base::WeakPtrFactory<AppBannerInfoBarDelegateAndroid> weak_ptr_factory_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateAndroid); | 139 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateAndroid); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 // Register native methods. | 142 // Register native methods. |
| 140 bool RegisterAppBannerInfoBarDelegateAndroid(JNIEnv* env); | 143 bool RegisterAppBannerInfoBarDelegateAndroid(JNIEnv* env); |
| 141 | 144 |
| 142 } // namespace banners | 145 } // namespace banners |
| 143 | 146 |
| 144 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ | 147 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ |
| OLD | NEW |