| Index: chrome/browser/ui/screen_capture_infobar_delegate.h
|
| diff --git a/chrome/browser/ui/screen_capture_infobar_delegate.h b/chrome/browser/ui/screen_capture_infobar_delegate.h
|
| index de091d466556fd275e0878b1aea0e16e58f07a77..95b865faa58cd3447b8b289f54a8e6322403d88e 100644
|
| --- a/chrome/browser/ui/screen_capture_infobar_delegate.h
|
| +++ b/chrome/browser/ui/screen_capture_infobar_delegate.h
|
| @@ -11,24 +11,20 @@
|
| #include "content/public/common/media_stream_request.h"
|
|
|
| class InfoBarService;
|
| +class ScreenCaptureConfirmationUIInfobar;
|
|
|
| class ScreenCaptureInfoBarDelegate : public ConfirmInfoBarDelegate {
|
| public:
|
| - static void Create(
|
| - content::WebContents* web_contents,
|
| - const content::MediaStreamRequest& request,
|
| - const content::MediaResponseCallback& callback);
|
| + ScreenCaptureInfoBarDelegate(
|
| + InfoBarService* infobar_service,
|
| + const string16& application_name,
|
| + ScreenCaptureConfirmationUIInfobar* result_handler);
|
|
|
| virtual ~ScreenCaptureInfoBarDelegate();
|
|
|
| private:
|
| - ScreenCaptureInfoBarDelegate(
|
| - InfoBarService* infobar_service,
|
| - const content::MediaStreamRequest& request,
|
| - const content::MediaResponseCallback& callback);
|
|
|
| // Base class: ConfirmInfoBarDelegate.
|
| - virtual bool EqualsDelegate(InfoBarDelegate* delegate) const OVERRIDE;
|
| virtual void InfoBarDismissed() OVERRIDE;
|
| virtual Type GetInfoBarType() const OVERRIDE;
|
| virtual ScreenCaptureInfoBarDelegate*
|
| @@ -38,10 +34,8 @@ class ScreenCaptureInfoBarDelegate : public ConfirmInfoBarDelegate {
|
| virtual bool Accept() OVERRIDE;
|
| virtual bool Cancel() OVERRIDE;
|
|
|
| - void Deny();
|
| -
|
| - const content::MediaStreamRequest request_;
|
| - const content::MediaResponseCallback callback_;
|
| + ScreenCaptureConfirmationUIInfobar* result_handler_;
|
| + const string16 application_name_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ScreenCaptureInfoBarDelegate);
|
| };
|
|
|