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

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

Issue 2341953004: Decouple MediaStreamInfoBarDelegate from GroupedPermissionInfoBarDelegate (Closed)
Patch Set: address review comments Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/permissions/permission_infobar_delegate.h
diff --git a/chrome/browser/permissions/permission_infobar_delegate.h b/chrome/browser/permissions/permission_infobar_delegate.h
index 1156bb8afeeb05dca2ed1af52ff039b09902aedf..96e82c9396fedf16d176e66b2cd9657efe419fff 100644
--- a/chrome/browser/permissions/permission_infobar_delegate.h
+++ b/chrome/browser/permissions/permission_infobar_delegate.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_PERMISSIONS_PERMISSION_INFOBAR_DELEGATE_H_
#include <memory>
+#include <vector>
#include "base/callback.h"
#include "base/macros.h"
@@ -26,7 +27,7 @@ class PermissionInfoBarDelegate : public ConfirmInfoBarDelegate {
using PermissionSetCallback = base::Callback<void(bool, PermissionAction)>;
~PermissionInfoBarDelegate() override;
- ContentSettingsType content_setting() const { return content_settings_type_; }
+ virtual std::vector<int> content_settings() const;
// Returns true if the infobar should display a toggle to allow users to
// opt-out of persisting their accept/deny decision.
@@ -35,6 +36,7 @@ class PermissionInfoBarDelegate : public ConfirmInfoBarDelegate {
// Sets whether or not a decided permission should be persisted to content
// settings.
void set_persist(bool persist) { persist_ = persist; }
+ bool persist() const { return persist_; }
// ConfirmInfoBarDelegate:
base::string16 GetMessageText() const override;

Powered by Google App Engine
This is Rietveld 408576698