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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/android/infobars/permission_infobar.h
diff --git a/chrome/browser/ui/android/infobars/permission_infobar.h b/chrome/browser/ui/android/infobars/permission_infobar.h
new file mode 100644
index 0000000000000000000000000000000000000000..7afd90aa1e85fadc908e0244bd95262feedeffb1
--- /dev/null
+++ b/chrome/browser/ui/android/infobars/permission_infobar.h
@@ -0,0 +1,33 @@
+// 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_PERMISSION_INFOBAR_H_
+#define CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_INFOBAR_H_
+
+#include "base/android/scoped_java_ref.h"
+#include "base/macros.h"
+#include "chrome/browser/ui/android/infobars/confirm_infobar.h"
+
+class PermissionInfobarDelegate;
+
+class PermissionInfoBar : public ConfirmInfoBar {
+ public:
+ explicit PermissionInfoBar(
+ std::unique_ptr<PermissionInfobarDelegate> delegate);
+ ~PermissionInfoBar() override;
+
+ protected:
+ PermissionInfobarDelegate* GetDelegate();
+
+ // InfoBarAndroid overrides.
+ base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
+ JNIEnv* env) override;
+
+ private:
+ void ProcessButton(int action) override;
+
+ DISALLOW_COPY_AND_ASSIGN(PermissionInfoBar);
+};
+
+#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_INFOBAR_H_

Powered by Google App Engine
This is Rietveld 408576698