Index: chrome/browser/translate/translate_infobar_delegate2.h |
=================================================================== |
--- chrome/browser/translate/translate_infobar_delegate2.h (revision 50913) |
+++ chrome/browser/translate/translate_infobar_delegate2.h (working copy) |
@@ -49,10 +49,10 @@ |
int GetLanguageCount() const; |
// Returns the ISO code for the language at |index|. |
- std::string GetLanguageCodeAt(int index) const; |
+ const std::string& GetLanguageCodeAt(int index) const; |
// Returns the displayable name for the language at |index|. |
- string16 GetLanguageDisplayableNameAt(int index) const; |
+ const string16& GetLanguageDisplayableNameAt(int index) const; |
TabContents* tab_contents() const { return tab_contents_; } |
@@ -62,8 +62,8 @@ |
int target_language_index() const { return target_language_index_; } |
// Convenience methods. |
- std::string GetOriginalLanguageCode() const; |
- std::string GetTargetLanguageCode() const; |
+ const std::string& GetOriginalLanguageCode() const; |
+ const std::string& GetTargetLanguageCode() const; |
// Called by the InfoBar to notify that the original/target language has |
// changed and is now the language at |language_index|. |
@@ -89,8 +89,7 @@ |
// InfoBarDelegate implementation: |
virtual InfoBar* CreateInfoBar(); |
- virtual void InfoBarDismissed(); |
- virtual void InfoBarClosed(); |
+ void InfoBarDismissed(); |
virtual SkBitmap* GetIcon() const; |
virtual InfoBarDelegate::Type GetInfoBarType(); |
virtual TranslateInfoBarDelegate2* AsTranslateInfoBarDelegate2() { |