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

Unified Diff: chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.h

Issue 2946013002: PaymentHandler: Implement requestPermission().
Patch Set: PaymentHandler: Implement requestPermission(). Created 3 years, 6 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/payments/android/payment_handler_permission_infobar_delegate_android.h
diff --git a/chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.h b/chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..5a62152a95d6be00b35ac0883033c646b7bddd2b
--- /dev/null
+++ b/chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.h
@@ -0,0 +1,38 @@
+// Copyright 2017 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_PAYMENTS_ANDROID_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_ANDROID_H_
+#define CHROME_BROWSER_PAYMENTS_ANDROID_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_ANDROID_H_
+
+#include "base/macros.h"
+#include "chrome/browser/permissions/permission_infobar_delegate.h"
+
+class GURL;
+class Profile;
+
+namespace payments {
+
+class PaymentHandlerPermissionInfoBarDelegateAndroid
+ : public PermissionInfoBarDelegate {
+ public:
+ PaymentHandlerPermissionInfoBarDelegateAndroid(
+ const GURL& requesting_frame,
+ bool user_gesture,
+ Profile* profile,
+ const PermissionSetCallback& callback);
+
+ private:
+ ~PaymentHandlerPermissionInfoBarDelegateAndroid() override;
+
+ // PermissionInfoBarDelegate:
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
+ int GetIconId() const override;
+ int GetMessageResourceId() const override;
+
+ DISALLOW_COPY_AND_ASSIGN(PaymentHandlerPermissionInfoBarDelegateAndroid);
+};
+
+} // namespace payments
+
+#endif // CHROME_BROWSER_PAYMENTS_ANDROID_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_ANDROID_H_
« no previous file with comments | « chrome/browser/payments/OWNERS ('k') | chrome/browser/payments/android/payment_handler_permission_infobar_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698