Chromium Code Reviews| Index: chrome/browser/payments/payment_handler_permission_infobar_delegate.h |
| diff --git a/chrome/browser/payments/payment_handler_permission_infobar_delegate.h b/chrome/browser/payments/payment_handler_permission_infobar_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f21411c52f8bfbcc0910f6355f69d23357abf644 |
| --- /dev/null |
| +++ b/chrome/browser/payments/payment_handler_permission_infobar_delegate.h |
| @@ -0,0 +1,33 @@ |
| +// 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_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_H_ |
| +#define CHROME_BROWSER_PAYMENTS_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_H_ |
| + |
| +#include <string> |
|
please use gerrit instead
2017/06/20 13:28:09
Not used.
zino
2017/06/22 17:26:41
Done.
|
| + |
| +#include "base/macros.h" |
| +#include "chrome/browser/permissions/permission_infobar_delegate.h" |
| + |
|
please use gerrit instead
2017/06/20 13:28:09
Let's put this in the "payments" namespace.
zino
2017/06/22 17:26:39
Done.
|
| +class PaymentHandlerPermissionInfoBarDelegate |
| + : public PermissionInfoBarDelegate { |
| + public: |
| + PaymentHandlerPermissionInfoBarDelegate( |
| + const GURL& requesting_frame, |
|
please use gerrit instead
2017/06/20 13:28:08
Forward declare GURL.
zino
2017/06/22 17:26:40
Done.
|
| + bool user_gesture, |
| + Profile* profile, |
|
please use gerrit instead
2017/06/20 13:28:09
Forward declare Profile.
zino
2017/06/22 17:26:38
Done.
|
| + const PermissionSetCallback& callback); |
|
please use gerrit instead
2017/06/20 13:28:08
Forward declare PermissionSetCallback.
zino
2017/06/22 17:26:42
It's defined in parent class.
|
| + |
| + private: |
| + ~PaymentHandlerPermissionInfoBarDelegate() override; |
| + |
| + // PermissionInfoBarDelegate: |
| + infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; |
| + int GetIconId() const override; |
| + int GetMessageResourceId() const override; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PaymentHandlerPermissionInfoBarDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_PAYMENTS_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_H_ |