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

Unified Diff: chrome/browser/media/protected_media_identifier_infobar_delegate.h

Issue 1343553003: permissions: make ProtectedMediaIdentiferInfoBarDelegate a subclass of PermissionInfobarDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/protected_media_identifier_infobar_delegate.h
diff --git a/chrome/browser/media/protected_media_identifier_infobar_delegate.h b/chrome/browser/media/protected_media_identifier_infobar_delegate.h
index 6eee305448dedf508f7db34278e6ebb4f1198c6b..7f0f52dee62f74dc2988086b56f7678125f8ddeb 100644
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate.h
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate.h
@@ -7,17 +7,13 @@
#include <string>
-#include "chrome/browser/permissions/permission_request_id.h"
-#include "components/infobars/core/confirm_infobar_delegate.h"
-#include "url/gurl.h"
+#include "chrome/browser/permissions/permission_infobar_delegate.h"
class PermissionQueueController;
class InfoBarService;
-// TODO(toyoshim): Much more code can be shared with GeolocationInfoBarDelegate.
-// http://crbug.com/266743
-
-class ProtectedMediaIdentifierInfoBarDelegate : public ConfirmInfoBarDelegate {
+class ProtectedMediaIdentifierInfoBarDelegate
+ : public PermissionInfobarDelegate {
public:
// Creates a protected media identifier infobar and delegate and adds the
// infobar to |infobar_service|. Returns the infobar if it was successfully
@@ -35,23 +31,13 @@ class ProtectedMediaIdentifierInfoBarDelegate : public ConfirmInfoBarDelegate {
const std::string& display_languages);
~ProtectedMediaIdentifierInfoBarDelegate() override;
- // Calls back to the controller to inform it of the user's decision.
- void SetPermission(bool update_content_setting, bool allowed);
-
private:
// ConfirmInfoBarDelegate:
- Type GetInfoBarType() const override;
int GetIconId() const override;
- void InfoBarDismissed() override;
base::string16 GetMessageText() const override;
- base::string16 GetButtonLabel(InfoBarButton button) const override;
- bool Accept() override;
- bool Cancel() override;
base::string16 GetLinkText() const override;
bool LinkClicked(WindowOpenDisposition disposition) override;
- PermissionQueueController* controller_;
- const PermissionRequestID id_;
GURL requesting_frame_;
std::string display_languages_;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/media/protected_media_identifier_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698