OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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_PAYMENTS_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_H_ | |
6 #define CHROME_BROWSER_PAYMENTS_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_H_ | |
7 | |
8 #include <string> | |
please use gerrit instead
2017/06/20 13:28:09
Not used.
zino
2017/06/22 17:26:41
Done.
| |
9 | |
10 #include "base/macros.h" | |
11 #include "chrome/browser/permissions/permission_infobar_delegate.h" | |
12 | |
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.
| |
13 class PaymentHandlerPermissionInfoBarDelegate | |
14 : public PermissionInfoBarDelegate { | |
15 public: | |
16 PaymentHandlerPermissionInfoBarDelegate( | |
17 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.
| |
18 bool user_gesture, | |
19 Profile* profile, | |
please use gerrit instead
2017/06/20 13:28:09
Forward declare Profile.
zino
2017/06/22 17:26:38
Done.
| |
20 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.
| |
21 | |
22 private: | |
23 ~PaymentHandlerPermissionInfoBarDelegate() override; | |
24 | |
25 // PermissionInfoBarDelegate: | |
26 infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override; | |
27 int GetIconId() const override; | |
28 int GetMessageResourceId() const override; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(PaymentHandlerPermissionInfoBarDelegate); | |
31 }; | |
32 | |
33 #endif // CHROME_BROWSER_PAYMENTS_PAYMENT_HANDLER_PERMISSION_INFOBAR_DELEGATE_H _ | |
OLD | NEW |