Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(839)

Side by Side Diff: chrome/browser/permissions/permission_update_infobar_delegate_android.h

Issue 1362803002: Add logic to resolve permission mismatches in Android M for webrtc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and fix declining Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <vector> 9 #include <vector>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // PermissionInfoBarDelegate: 58 // PermissionInfoBarDelegate:
59 int GetIconId() const override; 59 int GetIconId() const override;
60 base::string16 GetMessageText() const override; 60 base::string16 GetMessageText() const override;
61 61
62 // ConfirmInfoBarDelegate: 62 // ConfirmInfoBarDelegate:
63 int GetButtons() const override; 63 int GetButtons() const override;
64 base::string16 GetButtonLabel(InfoBarButton button) const override; 64 base::string16 GetButtonLabel(InfoBarButton button) const override;
65 bool Accept() override; 65 bool Accept() override;
66 bool Cancel() override; 66 bool Cancel() override;
67 67
68 // InfoBarDelegate:
69 void InfoBarDismissed() override;
70
68 base::android::ScopedJavaGlobalRef<jobject> java_delegate_; 71 base::android::ScopedJavaGlobalRef<jobject> java_delegate_;
69 std::vector<ContentSettingsType> content_settings_types_; 72 std::vector<ContentSettingsType> content_settings_types_;
70 const PermissionUpdatedCallback callback_; 73 PermissionUpdatedCallback callback_;
71 ui::WindowAndroid* window_android_; 74 ui::WindowAndroid* window_android_;
72 75
73 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate); 76 DISALLOW_COPY_AND_ASSIGN(PermissionUpdateInfoBarDelegate);
74 }; 77 };
75 78
76 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID _H_ 79 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UPDATE_INFOBAR_DELEGATE_ANDROID _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698