| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_ |
| #define CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_ |
| |
| #include <jni.h> |
| |
| #include "base/android/scoped_java_ref.h" |
| #include "chrome/browser/ui/android/infobars/confirm_infobar.h" |
| |
| class GroupedPermissionInfoBarDelegate; |
| |
| // TODO(timloh): This is incorrectly named as we've removed grouped permissions, |
| // rename it to PermissionInfoBar once crbug.com/606138 is done. |
| class GroupedPermissionInfoBar : public ConfirmInfoBar { |
| public: |
| explicit GroupedPermissionInfoBar( |
| std::unique_ptr<GroupedPermissionInfoBarDelegate> delegate); |
| ~GroupedPermissionInfoBar() override; |
| |
| private: |
| // InfoBarAndroid: |
| base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
| JNIEnv* env) override; |
| |
| GroupedPermissionInfoBarDelegate* GetDelegate(); |
| |
| DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBar); |
| }; |
| |
| #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_GROUPED_PERMISSION_INFOBAR_H_ |