| Index: chrome/browser/ui/cocoa/infobars/infobar_cocoa.h
|
| diff --git a/chrome/browser/ui/cocoa/infobars/infobar_cocoa.h b/chrome/browser/ui/cocoa/infobars/infobar_cocoa.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a245b653f9d75e223c2c8ba5840d0c3e976c4bd
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/cocoa/infobars/infobar_cocoa.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 2013 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_UI_COCOA_INFOBARS_INFOBAR_COCOA_H_
|
| +#define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_COCOA_H_
|
| +
|
| +#include "base/mac/scoped_nsobject.h"
|
| +#include "chrome/browser/infobars/infobar.h"
|
| +
|
| +@class InfoBarController;
|
| +
|
| +class InfoBarCocoa : public InfoBar {
|
| + public:
|
| + InfoBarCocoa(InfoBarService* owner, InfoBarDelegate* delegate);
|
| +
|
| + virtual ~InfoBarCocoa();
|
| +
|
| + InfoBarController* controller() const { return controller_; }
|
| +
|
| + void set_controller(InfoBarController* controller) {
|
| + controller_.reset([controller retain]);
|
| + }
|
| +
|
| + private:
|
| + base::scoped_nsobject<InfoBarController> controller_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(InfoBarCocoa);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_COCOA_H_
|
|
|