Index: chrome/browser/permissions/permission_infobar_delegate.h |
diff --git a/chrome/browser/permissions/permission_infobar_delegate.h b/chrome/browser/permissions/permission_infobar_delegate.h |
index 96e82c9396fedf16d176e66b2cd9657efe419fff..a4b403cfd298aa1ff8da0f1f73bd65c210ce703f 100644 |
--- a/chrome/browser/permissions/permission_infobar_delegate.h |
+++ b/chrome/browser/permissions/permission_infobar_delegate.h |
@@ -14,7 +14,13 @@ |
#include "components/content_settings/core/common/content_settings_types.h" |
#include "components/infobars/core/confirm_infobar_delegate.h" |
#include "content/public/browser/permission_type.h" |
+#include "url/gurl.h" |
+namespace infobars { |
+class InfoBar; |
+} |
+ |
+class InfoBarService; |
class Profile; |
// Base class for permission infobars, it implements the default behavior |
@@ -26,6 +32,14 @@ class PermissionInfoBarDelegate : public ConfirmInfoBarDelegate { |
public: |
using PermissionSetCallback = base::Callback<void(bool, PermissionAction)>; |
+ // Creates an infobar for |type|. |
+ static infobars::InfoBar* Create(content::PermissionType type, |
Lei Zhang
2016/10/24 20:36:44
Any chance we can change this to return a std::uni
dominickn
2016/10/24 23:01:20
I don't think that's safe; the InfoBarService owns
Lei Zhang
2016/10/24 23:04:21
Can you add a comment to explain this? Oftentimes
dominickn
2016/10/24 23:26:04
Done.
|
+ InfoBarService* infobar_service, |
+ const GURL& requesting_frame, |
+ bool user_gesture, |
+ Profile* profile, |
+ const PermissionSetCallback& callback); |
+ |
~PermissionInfoBarDelegate() override; |
virtual std::vector<int> content_settings() const; |