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

Unified Diff: chrome/browser/permissions/grouped_permission_infobar_delegate.h

Issue 2019573002: Permissions: Allow control of individual requests in media permission infobars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bracket nit Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/permissions/grouped_permission_infobar_delegate.h
diff --git a/chrome/browser/permissions/grouped_permission_infobar_delegate.h b/chrome/browser/permissions/grouped_permission_infobar_delegate.h
index 803df70863b8917805c106e90aa3c76cf76444de..f0a22ced3e5f36a28108eeb6af278b9dcfd82d44 100644
--- a/chrome/browser/permissions/grouped_permission_infobar_delegate.h
+++ b/chrome/browser/permissions/grouped_permission_infobar_delegate.h
@@ -33,7 +33,6 @@ class GroupedPermissionInfoBarDelegate : public ConfirmInfoBarDelegate {
const std::vector<ContentSettingsType>& types);
~GroupedPermissionInfoBarDelegate() override;
- // Message text that displays at the top of the infobar.
base::string16 GetMessageText() const override;
int GetPermissionCount() const;
@@ -42,15 +41,22 @@ class GroupedPermissionInfoBarDelegate : public ConfirmInfoBarDelegate {
// Message text to display for an individual permission at |index|.
base::string16 GetMessageTextFragment(int index) const;
+ void ToggleAccept(int position, bool new_value);
+
+ protected:
+ bool GetAcceptState(int position);
+
private:
// ConfirmInfoBarDelegate:
base::string16 GetButtonLabel(InfoBarButton button) const override;
+ int GetButtons() const override;
// InfoBarDelegate:
Type GetInfoBarType() const override;
const GURL requesting_origin_;
const std::vector<ContentSettingsType> types_;
+ std::vector<bool> accept_states_;
DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBarDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698