| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROID_H
_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROID_H
_ |
| 6 #define CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROID_H
_ | 6 #define CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROID_H
_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 private: | 58 private: |
| 59 GroupedPermissionInfoBarDelegate(PermissionPromptAndroid* permission_prompt, | 59 GroupedPermissionInfoBarDelegate(PermissionPromptAndroid* permission_prompt, |
| 60 const GURL& requesting_origin); | 60 const GURL& requesting_origin); |
| 61 | 61 |
| 62 // ConfirmInfoBarDelegate: | 62 // ConfirmInfoBarDelegate: |
| 63 InfoBarIdentifier GetIdentifier() const override; | 63 InfoBarIdentifier GetIdentifier() const override; |
| 64 Type GetInfoBarType() const override; | 64 Type GetInfoBarType() const override; |
| 65 int GetButtons() const override; | 65 int GetButtons() const override; |
| 66 base::string16 GetButtonLabel(InfoBarButton button) const override; | 66 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 67 | 67 |
| 68 // InfoBarDelegate: |
| 69 bool EqualsDelegate(infobars::InfoBarDelegate* delegate) const override; |
| 70 |
| 68 const GURL requesting_origin_; | 71 const GURL requesting_origin_; |
| 69 // Whether the accept/deny decision is persisted. | 72 // Whether the accept/deny decision is persisted. |
| 70 bool persist_; | 73 bool persist_; |
| 71 PermissionPromptAndroid* permission_prompt_; | 74 PermissionPromptAndroid* permission_prompt_; |
| 72 | 75 |
| 73 DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBarDelegate); | 76 DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBarDelegate); |
| 74 }; | 77 }; |
| 75 | 78 |
| 76 #endif // CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROI
D_H_ | 79 #endif // CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROI
D_H_ |
| OLD | NEW |