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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 126 |
126 std::unique_ptr<SkBitmap> icon_; | 127 std::unique_ptr<SkBitmap> icon_; |
127 | 128 |
128 std::string native_app_package_; | 129 std::string native_app_package_; |
129 std::string referrer_; | 130 std::string referrer_; |
130 int event_request_id_; | 131 int event_request_id_; |
131 bool has_user_interaction_; | 132 bool has_user_interaction_; |
132 | 133 |
133 std::string webapk_package_name_; | 134 std::string webapk_package_name_; |
134 bool is_webapk_; | 135 bool is_webapk_; |
| 136 // Indicates the current state of a WebAPK installation. |
| 137 webapk::InstallState install_state_; |
135 | 138 |
136 base::WeakPtrFactory<AppBannerInfoBarDelegateAndroid> weak_ptr_factory_; | 139 base::WeakPtrFactory<AppBannerInfoBarDelegateAndroid> weak_ptr_factory_; |
137 | 140 |
138 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateAndroid); | 141 DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarDelegateAndroid); |
139 }; | 142 }; |
140 | 143 |
141 // Register native methods. | 144 // Register native methods. |
142 bool RegisterAppBannerInfoBarDelegateAndroid(JNIEnv* env); | 145 bool RegisterAppBannerInfoBarDelegateAndroid(JNIEnv* env); |
143 | 146 |
144 } // namespace banners | 147 } // namespace banners |
145 | 148 |
146 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ | 149 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_INFOBAR_DELEGATE_ANDROID_H_ |
OLD | NEW |