Index: chrome/browser/translate/translate_manager.h |
diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h |
index de4aa925e5894ba5d62cfd7d1cf22d1aeb76d6ff..9290c3a87d198a32fe532a7cbd02950c459226d1 100644 |
--- a/chrome/browser/translate/translate_manager.h |
+++ b/chrome/browser/translate/translate_manager.h |
@@ -27,6 +27,7 @@ struct LanguageDetectionDetails; |
struct PageTranslatedDetails; |
class PrefService; |
struct ShortcutConfiguration; |
+struct TranslateErrorDetails; |
class TranslateInfoBarDelegate; |
class TranslateLanguageList; |
@@ -119,6 +120,8 @@ class TranslateManager : public content::NotificationObserver, |
public: |
virtual void OnLanguageDetection( |
const LanguageDetectionDetails& details) = 0; |
+ virtual void OnTranslateError( |
+ const TranslateErrorDetails& details) = 0; |
}; |
// Adds/removes observer. |
@@ -178,6 +181,9 @@ class TranslateManager : public content::NotificationObserver, |
// Notifies to the observers when a language is detected. |
void NotifyLanguageDetection(const LanguageDetectionDetails& details); |
+ // Notifies to the observers when translate failed. |
+ void NotifyTranslateError(const TranslateErrorDetails& details); |
+ |
// Returns the language to translate to. The language returned is the |
// first language found in the following list that is supported by the |
// translation service: |