| Index: chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.h
|
| diff --git a/chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.h b/chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6f256f03c4b35976375319c1b6bd64e7b1105927
|
| --- /dev/null
|
| +++ b/chrome/browser/infobars/chrome_confirm_infobar_delegate_factory.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_INFOBARS_CHROME_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_
|
| +#define CHROME_BROWSER_INFOBARS_CHROME_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_
|
| +
|
| +#include "components/infobars/core/confirm_infobar_delegate_factory.h"
|
| +
|
| +template <typename T>
|
| +struct DefaultSingletonTraits;
|
| +
|
| +// ChromeConfirmInfoBarDelegateFactory provides Chrome specific implementation
|
| +// of ConfirmInfoBarDelegate::CreateInfoBar().
|
| +class ChromeConfirmInfoBarDelegateFactory
|
| + : public ConfirmInfoBarDelegateFactory {
|
| + public:
|
| + static ChromeConfirmInfoBarDelegateFactory* GetInstance();
|
| +
|
| + protected:
|
| + friend struct DefaultSingletonTraits<ChromeConfirmInfoBarDelegateFactory>;
|
| +
|
| + ChromeConfirmInfoBarDelegateFactory();
|
| + ~ChromeConfirmInfoBarDelegateFactory() override;
|
| +
|
| + private:
|
| + // ConfirmInfoBarDelegateFactory:
|
| + scoped_ptr<infobars::InfoBar> CreateInfoBar(
|
| + scoped_ptr<ConfirmInfoBarDelegate> delegate) override;
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_INFOBARS_CHROME_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_
|
|
|