OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H_ |
| 7 |
| 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
| 11 #include "components/content_settings/core/common/content_settings_types.h" |
| 12 #include "url/gurl.h" |
| 13 |
| 14 class PermissionGroupInfoBarDelegateAndroid; |
| 15 |
| 16 class PermissionGroupInfoBarAndroid : public ConfirmInfoBar { |
| 17 public: |
| 18 // Constructs an AppBannerInfoBarAndroid promoting a native app. |
| 19 PermissionGroupInfoBarAndroid( |
| 20 scoped_ptr<PermissionGroupInfoBarDelegateAndroid> delegate, |
| 21 std::vector<int> permission_types); |
| 22 ~PermissionGroupInfoBarAndroid() override; |
| 23 |
| 24 void OnCheckedStateUpdate(JNIEnv* env, |
| 25 jobject obj, |
| 26 jbooleanArray checkedState); |
| 27 private: |
| 28 // InfoBarAndroid overrides. |
| 29 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
| 30 JNIEnv* env) override; |
| 31 |
| 32 PermissionGroupInfoBarDelegateAndroid* GetDelegate(); |
| 33 |
| 34 GURL requesting_frame; |
| 35 std::vector<int> permission_types_; |
| 36 |
| 37 base::android::ScopedJavaGlobalRef<jobject> java_infobar_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(PermissionGroupInfoBarAndroid); |
| 40 }; |
| 41 |
| 42 // Register native methods. |
| 43 bool RegisterPermissionGroupInfoBarAndroid(JNIEnv* env); |
| 44 |
| 45 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_GROUP_INFOBAR_ANDROID_H
_ |
OLD | NEW |