| 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_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 const Extension* extension); | 27 const Extension* extension); |
| 28 | 28 |
| 29 const std::string extension_id() { return extension_id_; } | 29 const std::string extension_id() { return extension_id_; } |
| 30 | 30 |
| 31 // InfoBarDelegate | 31 // InfoBarDelegate |
| 32 virtual CrashedExtensionInfoBarDelegate* AsCrashedExtensionInfoBarDelegate() { | 32 virtual CrashedExtensionInfoBarDelegate* AsCrashedExtensionInfoBarDelegate() { |
| 33 return this; | 33 return this; |
| 34 } | 34 } |
| 35 | 35 |
| 36 // ConfirmInfoBarDelegate | 36 // ConfirmInfoBarDelegate |
| 37 virtual std::wstring GetMessageText() const; | 37 virtual string16 GetMessageText() const; |
| 38 virtual void InfoBarClosed(); | 38 virtual void InfoBarClosed(); |
| 39 virtual SkBitmap* GetIcon() const; | 39 virtual SkBitmap* GetIcon() const; |
| 40 virtual int GetButtons() const; | 40 virtual int GetButtons() const; |
| 41 virtual std::wstring GetButtonLabel( | 41 virtual string16 GetButtonLabel( |
| 42 ConfirmInfoBarDelegate::InfoBarButton button) const; | 42 ConfirmInfoBarDelegate::InfoBarButton button) const; |
| 43 virtual bool Accept(); | 43 virtual bool Accept(); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 ExtensionsService* extensions_service_; | 46 ExtensionsService* extensions_service_; |
| 47 | 47 |
| 48 const std::string extension_id_; | 48 const std::string extension_id_; |
| 49 const std::string extension_name_; | 49 const std::string extension_name_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(CrashedExtensionInfoBarDelegate); | 51 DISALLOW_COPY_AND_ASSIGN(CrashedExtensionInfoBarDelegate); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ | 54 #endif // CHROME_BROWSER_EXTENSIONS_CRASHED_EXTENSION_INFOBAR_H_ |
| OLD | NEW |