| 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 24 matching lines...) Expand all Loading... |
| 35 public content::WebContentsUserData<AppBannerManagerAndroid> { | 35 public content::WebContentsUserData<AppBannerManagerAndroid> { |
| 36 public: | 36 public: |
| 37 explicit AppBannerManagerAndroid(content::WebContents* web_contents); | 37 explicit AppBannerManagerAndroid(content::WebContents* web_contents); |
| 38 ~AppBannerManagerAndroid() override; | 38 ~AppBannerManagerAndroid() override; |
| 39 | 39 |
| 40 // Returns a reference to the Java-side AppBannerManager owned by this object. | 40 // Returns a reference to the Java-side AppBannerManager owned by this object. |
| 41 const base::android::ScopedJavaGlobalRef<jobject>& GetJavaBannerManager() | 41 const base::android::ScopedJavaGlobalRef<jobject>& GetJavaBannerManager() |
| 42 const; | 42 const; |
| 43 | 43 |
| 44 // Returns true if the banner pipeline is currently running. | 44 // Returns true if the banner pipeline is currently running. |
| 45 bool IsActiveForTesting(JNIEnv* env, | 45 bool IsRunningForTesting(JNIEnv* env, |
| 46 const base::android::JavaParamRef<jobject>& jobj); | 46 const base::android::JavaParamRef<jobject>& jobj); |
| 47 | 47 |
| 48 // Informs the InstallableManager for the WebContents we are attached to that | 48 // Informs the InstallableManager for the WebContents we are attached to that |
| 49 // the add to homescreen menu item has been tapped. | 49 // the add to homescreen menu item has been tapped. |
| 50 void RecordMenuItemAddToHomescreen( | 50 void RecordMenuItemAddToHomescreen( |
| 51 JNIEnv* env, | 51 JNIEnv* env, |
| 52 const base::android::JavaParamRef<jobject>& jobj); | 52 const base::android::JavaParamRef<jobject>& jobj); |
| 53 | 53 |
| 54 // Informs the InstallableManager for the WebContents we are attached to that | 54 // Informs the InstallableManager for the WebContents we are attached to that |
| 55 // the menu has been opened. | 55 // the menu has been opened. |
| 56 void RecordMenuOpen(JNIEnv* env, | 56 void RecordMenuOpen(JNIEnv* env, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 // Whether WebAPKs can be installed. | 135 // Whether WebAPKs can be installed. |
| 136 bool can_install_webapk_; | 136 bool can_install_webapk_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); | 138 DISALLOW_COPY_AND_ASSIGN(AppBannerManagerAndroid); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 } // namespace banners | 141 } // namespace banners |
| 142 | 142 |
| 143 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ | 143 #endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_MANAGER_ANDROID_H_ |
| OLD | NEW |