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

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

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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
===================================================================
--- chrome/browser/media/protected_media_identifier_infobar_delegate.h (revision 226624)
+++ chrome/browser/media/protected_media_identifier_infobar_delegate.h (working copy)
@@ -14,19 +14,21 @@
class PermissionQueueController;
class InfoBarService;
+// TODO(toyoshim): Much more code can be shared with GeolocationInfoBarDelegate.
+// http://crbug.com/266743
+
class ProtectedMediaIdentifierInfoBarDelegate : public ConfirmInfoBarDelegate {
public:
- // Creates a protected media identifier infobar delegate and adds it to
- // |infobar_service|.
- // Returns the delegate if it was successfully added.
- static InfoBarDelegate* Create(InfoBarService* infobar_service,
- PermissionQueueController* controller,
- const PermissionRequestID& id,
- const GURL& requesting_frame,
- const std::string& display_languages);
+ // Creates a protected media identifier infobar and delegate and adds the
+ // infobar to |infobar_service|. Returns the infobar if it was successfully
+ // added.
+ static InfoBar* Create(InfoBarService* infobar_service,
+ PermissionQueueController* controller,
+ const PermissionRequestID& id,
+ const GURL& requesting_frame,
+ const std::string& display_languages);
protected:
- ProtectedMediaIdentifierInfoBarDelegate(InfoBarService* infobar_service,
- PermissionQueueController* controller,
+ ProtectedMediaIdentifierInfoBarDelegate(PermissionQueueController* controller,
const PermissionRequestID& id,
const GURL& requesting_frame,
int contents_unique_id,
@@ -33,7 +35,7 @@
const std::string& display_languages);
virtual ~ProtectedMediaIdentifierInfoBarDelegate();
- // Call back to the controller, to inform of the user's decision.
+ // Calls back to the controller to inform it of the user's decision.
void SetPermission(bool update_content_setting, bool allowed);
private:

Powered by Google App Engine
This is Rietveld 408576698