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

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

Issue 2315563002: Add PermissionPromptAndroid skeleton (Closed)
Patch Set: address review comments Created 4 years, 2 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 private: 54 private:
55 GroupedPermissionInfoBarDelegate( 55 GroupedPermissionInfoBarDelegate(
56 const GURL& requesting_origin, 56 const GURL& requesting_origin,
57 const std::vector<PermissionRequest*>& requests); 57 const std::vector<PermissionRequest*>& requests);
58 58
59 // ConfirmInfoBarDelegate: 59 // ConfirmInfoBarDelegate:
60 InfoBarIdentifier GetIdentifier() const override; 60 InfoBarIdentifier GetIdentifier() const override;
61 Type GetInfoBarType() const override; 61 Type GetInfoBarType() const override;
62 int GetButtons() const override; 62 int GetButtons() const override;
63 base::string16 GetButtonLabel(InfoBarButton button) const override; 63 base::string16 GetButtonLabel(InfoBarButton button) const override;
64 GroupedPermissionInfoBarDelegate* AsGroupedPermissionInfoBarDelegate()
65 override;
64 66
65 const GURL requesting_origin_; 67 const GURL requesting_origin_;
66 const std::vector<PermissionRequest*> requests_; 68 const std::vector<PermissionRequest*> requests_;
67 std::vector<bool> accept_states_; 69 std::vector<bool> accept_states_;
68 // Whether the accept/deny decision is persisted. 70 // Whether the accept/deny decision is persisted.
69 bool persist_; 71 bool persist_;
70 72
71 DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBarDelegate); 73 DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBarDelegate);
72 }; 74 };
73 75
74 #endif // CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROI D_H_ 76 #endif // CHROME_BROWSER_PERMISSIONS_GROUPED_PERMISSION_INFOBAR_DELEGATE_ANDROI D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698