Index: chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h |
=================================================================== |
--- chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h (revision 175396) |
+++ chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h (working copy) |
@@ -19,6 +19,15 @@ |
// and handling of geolocation permission infobars to the user. |
class GeolocationConfirmInfoBarDelegate : public ConfirmInfoBarDelegate { |
public: |
+ // Creates a geolocation delegate and adds it to |infobar_service|. Returns |
+ // the delegate if it was successfully added. |
+ static InfoBarDelegate* Create(InfoBarService* infobar_service, |
+ GeolocationInfoBarQueueController* controller, |
+ const GeolocationPermissionRequestID& id, |
+ const GURL& requesting_frame, |
+ const std::string& display_languages); |
+ |
+ protected: |
GeolocationConfirmInfoBarDelegate( |
InfoBarService* infobar_service, |
GeolocationInfoBarQueueController* controller, |
@@ -28,7 +37,6 @@ |
const GeolocationPermissionRequestID& id() const { return id_; } |
- protected: |
// ConfirmInfoBarDelegate: |
virtual gfx::Image* GetIcon() const OVERRIDE; |
virtual Type GetInfoBarType() const OVERRIDE; |