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_; |