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

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

Issue 2226633002: Add a feature to display a persistence toggle for permission prompts on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits, verbal change to make it geolocation-only Created 4 years, 4 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 2016 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_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_INFOBAR_H_
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/macros.h"
10 #include "chrome/browser/ui/android/infobars/confirm_infobar.h"
11
12 class PermissionInfobarDelegate;
13
14 class PermissionInfoBar : public ConfirmInfoBar {
15 public:
16 explicit PermissionInfoBar(
17 std::unique_ptr<PermissionInfobarDelegate> delegate);
18 ~PermissionInfoBar() override;
19
20 protected:
21 PermissionInfobarDelegate* GetDelegate();
22
23 // InfoBarAndroid overrides.
24 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
25 JNIEnv* env) override;
26
27 private:
28 void ProcessButton(int action) override;
29
30 DISALLOW_COPY_AND_ASSIGN(PermissionInfoBar);
31 };
32
33 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698