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

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

Issue 1332293002: permissions: switch from explicitly passing queue controller to callbacks (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 7f0f52dee62f74dc2988086b56f7678125f8ddeb..ef8acc0d307fe0d5914c24c40331e7da7068a8ba 100644
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate.h
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate.h
@@ -9,7 +9,6 @@
#include "chrome/browser/permissions/permission_infobar_delegate.h"
-class PermissionQueueController;
class InfoBarService;
class ProtectedMediaIdentifierInfoBarDelegate
@@ -18,17 +17,17 @@ class ProtectedMediaIdentifierInfoBarDelegate
// Creates a protected media identifier 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,
- const PermissionRequestID& id,
- const GURL& requesting_frame,
- const std::string& display_languages);
+ static infobars::InfoBar* Create(
+ InfoBarService* infobar_service,
+ const GURL& requesting_frame,
+ const std::string& display_languages,
+ const PermissionSetCallback& callback);
protected:
- ProtectedMediaIdentifierInfoBarDelegate(PermissionQueueController* controller,
- const PermissionRequestID& id,
- const GURL& requesting_frame,
- const std::string& display_languages);
+ ProtectedMediaIdentifierInfoBarDelegate(
+ const GURL& requesting_frame,
+ const std::string& display_languages,
+ const PermissionSetCallback& callback);
~ProtectedMediaIdentifierInfoBarDelegate() override;
private:

Powered by Google App Engine
This is Rietveld 408576698