| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/logging.h" // for DCHECK | 9 #include "base/logging.h" // for DCHECK |
| 10 | 10 |
| 11 @class InfoBarController; | 11 @class InfoBarController; |
| 12 | 12 |
| 13 // A C++ wrapper around an Objective-C InfoBarController. This class | 13 // A C++ wrapper around an Objective-C InfoBarController. This class |
| 14 // exists solely to be the return value for InfoBarDelegate::CreateInfoBar(), | 14 // exists solely to be the return value for InfoBarDelegate::CreateInfoBar(), |
| 15 // as defined in chrome/browser/tab_contents/infobar_delegate.h. This | 15 // as defined in chrome/browser/tab_contents/infobar_delegate.h. This |
| 16 // class would be analogous to the various bridge classes we already | 16 // class would be analogous to the various bridge classes we already |
| (...skipping 21 matching lines...) Expand all Loading... |
| 38 return controller_; | 38 return controller_; |
| 39 } | 39 } |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 // Pointer to the infobar controller. Is never null. | 42 // Pointer to the infobar controller. Is never null. |
| 43 InfoBarController* controller_; // weak | 43 InfoBarController* controller_; // weak |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(InfoBar); | 45 DISALLOW_COPY_AND_ASSIGN(InfoBar); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_UI_COCOA_INFOBAR_H_ | 48 #endif // CHROME_BROWSER_UI_COCOA_INFOBARS_INFOBAR_H_ |
| OLD | NEW |