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> |
11 | 11 |
12 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" |
14 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
15 #include "components/content_settings/core/common/content_settings_types.h" | 16 #include "components/content_settings/core/common/content_settings_types.h" |
16 #include "components/infobars/core/confirm_infobar_delegate.h" | 17 #include "components/infobars/core/confirm_infobar_delegate.h" |
17 | 18 |
18 namespace content { | 19 namespace content { |
19 class WebContents; | 20 class WebContents; |
20 } | 21 } |
21 | 22 |
22 // An infobar delegate to be used for requesting missing Android runtime | 23 // An infobar delegate to be used for requesting missing Android runtime |
23 // permissions for previously allowed ContentSettingsTypes. | 24 // permissions for previously allowed ContentSettingsTypes. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 83 |
83 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; | 84 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; |
84 std::vector<std::string> android_permissions_; | 85 std::vector<std::string> android_permissions_; |
85 int permission_msg_id_; | 86 int permission_msg_id_; |
86 PermissionUpdatedCallback callback_; | 87 PermissionUpdatedCallback callback_; |
87 | 88 |
88 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); | 89 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); |
89 }; | 90 }; |
90 | 91 |
91 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ | 92 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID
_H_ |
OLD | NEW |