| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ |
| 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ | 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 jboolean all_permissions_granted); | 60 jboolean all_permissions_granted); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 PermissionUpdateInfoBarDelegate( | 63 PermissionUpdateInfoBarDelegate( |
| 64 content::WebContents* web_contents, | 64 content::WebContents* web_contents, |
| 65 const std::vector<std::string>& android_permissions, | 65 const std::vector<std::string>& android_permissions, |
| 66 int permission_msg_id, | 66 int permission_msg_id, |
| 67 const PermissionUpdatedCallback& callback); | 67 const PermissionUpdatedCallback& callback); |
| 68 ~PermissionUpdateInfoBarDelegate() override; | 68 ~PermissionUpdateInfoBarDelegate() override; |
| 69 | 69 |
| 70 // InfoBarDelegate: |
| 71 std::string GetIdentifier() const override; |
| 72 |
| 70 // PermissionInfoBarDelegate: | 73 // PermissionInfoBarDelegate: |
| 71 int GetIconId() const override; | 74 int GetIconId() const override; |
| 72 base::string16 GetMessageText() const override; | 75 base::string16 GetMessageText() const override; |
| 73 | 76 |
| 74 // ConfirmInfoBarDelegate: | 77 // ConfirmInfoBarDelegate: |
| 75 int GetButtons() const override; | 78 int GetButtons() const override; |
| 76 base::string16 GetButtonLabel(InfoBarButton button) const override; | 79 base::string16 GetButtonLabel(InfoBarButton button) const override; |
| 77 bool Accept() override; | 80 bool Accept() override; |
| 78 bool Cancel() override; | 81 bool Cancel() override; |
| 79 | 82 |
| 80 // InfoBarDelegate: | 83 // InfoBarDelegate: |
| 81 void InfoBarDismissed() override; | 84 void InfoBarDismissed() override; |
| 82 | 85 |
| 83 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; | 86 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; |
| 84 std::vector<std::string> android_permissions_; | 87 std::vector<std::string> android_permissions_; |
| 85 int permission_msg_id_; | 88 int permission_msg_id_; |
| 86 PermissionUpdatedCallback callback_; | 89 PermissionUpdatedCallback callback_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); | 91 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ | 94 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ |
| OLD | NEW |