Chromium Code Reviews| Index: chrome/browser/durable_storage_permission_infobar_delegate.h |
| diff --git a/chrome/browser/media/midi_permission_infobar_delegate.h b/chrome/browser/durable_storage_permission_infobar_delegate.h |
| similarity index 50% |
| copy from chrome/browser/media/midi_permission_infobar_delegate.h |
| copy to chrome/browser/durable_storage_permission_infobar_delegate.h |
| index befb181407188887d8f8e02b017e1c43c9b046c5..03b93ced54983b76c7d68200dfd42a38da054695 100644 |
| --- a/chrome/browser/media/midi_permission_infobar_delegate.h |
| +++ b/chrome/browser/durable_storage_permission_infobar_delegate.h |
| @@ -2,8 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CHROME_BROWSER_MEDIA_MIDI_PERMISSION_INFOBAR_DELEGATE_H_ |
| -#define CHROME_BROWSER_MEDIA_MIDI_PERMISSION_INFOBAR_DELEGATE_H_ |
| +#ifndef CHROME_BROWSER_DURABLE_STORAGE_PERMISSION_INFOBAR_DELEGATE_H_ |
| +#define CHROME_BROWSER_DURABLE_STORAGE_PERMISSION_INFOBAR_DELEGATE_H_ |
| #include <string> |
| #include "chrome/browser/content_settings/permission_infobar_delegate.h" |
| @@ -13,12 +13,11 @@ class GURL; |
| class PermissionQueueController; |
| class InfoBarService; |
| -// MidiPermissionInfoBarDelegates are created by the |
| -// MidiPermissionContext to control the display and handling of MIDI permission |
| -// infobars to the user. |
| -class MidiPermissionInfoBarDelegate : public PermissionInfobarDelegate { |
|
mlamouri (slow - plz ping)
2015/07/02 09:53:01
I thought we were killing infobars. Why do we need
dgrogan
2015/07/07 04:15:11
+felt, who recently made permission bubbles the de
felt
2015/07/13 18:43:44
Answered this in e-mail, but repeating here for po
|
| +class DurableStoragePermissionInfoBarDelegate |
| + : public PermissionInfobarDelegate { |
| public: |
| - // Creates a MIDI permission infobar and delegate and adds the infobar to |
| + // Creates a DurableStorage permission infobar and delegate and adds the |
| + // infobar to |
| // |infobar_service|. Returns the infobar if it was successfully added. |
| static infobars::InfoBar* Create(InfoBarService* infobar_service, |
| PermissionQueueController* controller, |
| @@ -28,21 +27,19 @@ class MidiPermissionInfoBarDelegate : public PermissionInfobarDelegate { |
| ContentSettingsType type); |
| private: |
| - MidiPermissionInfoBarDelegate(PermissionQueueController* controller, |
| - const PermissionRequestID& id, |
| - const GURL& requesting_frame, |
| - const std::string& display_languages, |
| - ContentSettingsType type); |
| - ~MidiPermissionInfoBarDelegate() override; |
| - |
| - // ConfirmInfoBarDelegate: |
| - int GetIconID() const override; |
| + DurableStoragePermissionInfoBarDelegate(PermissionQueueController* controller, |
| + const PermissionRequestID& id, |
| + const GURL& requesting_frame, |
| + const std::string& display_languages, |
| + ContentSettingsType type); |
| + ~DurableStoragePermissionInfoBarDelegate() override; |
| + |
| base::string16 GetMessageText() const override; |
| GURL requesting_frame_; |
| std::string display_languages_; |
| - DISALLOW_COPY_AND_ASSIGN(MidiPermissionInfoBarDelegate); |
| + DISALLOW_COPY_AND_ASSIGN(DurableStoragePermissionInfoBarDelegate); |
| }; |
| -#endif // CHROME_BROWSER_MEDIA_MIDI_PERMISSION_INFOBAR_DELEGATE_H_ |
| +#endif // CHROME_BROWSER_DURABLE_STORAGE_PERMISSION_INFOBAR_DELEGATE_H_ |