Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(477)

Side by Side Diff: chrome/browser/ui/android/infobars/permission_group_infobar_android.h

Issue 1332063003: permissions: implement coalesced permissions on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request-multiple
Patch Set: Fix minor issues Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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"
gone 2015/09/25 10:34:43 remove necessary headers
Lalit Maganti 2015/09/25 13:09:24 Done.
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.
gone 2015/09/25 10:34:43 no it doesn't.
Lalit Maganti 2015/09/25 13:09:24 Done.
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;
gone 2015/09/25 10:34:43 unused.
Lalit Maganti 2015/09/25 13:09:24 Done.
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698