| Index: chrome/browser/translate/translate_manager.h
|
| diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h
|
| index 166ac95527ef9f0e037a6bded1321b04bd3215d4..89d55f8e7e682285c5dc3c89d5decef2d1748188 100644
|
| --- a/chrome/browser/translate/translate_manager.h
|
| +++ b/chrome/browser/translate/translate_manager.h
|
| @@ -28,6 +28,7 @@ struct LanguageDetectionDetails;
|
| struct PageTranslatedDetails;
|
| class PrefService;
|
| struct ShortcutConfiguration;
|
| +struct TranslateErrorDetails;
|
| class TranslateInfoBarDelegate;
|
|
|
| namespace content {
|
| @@ -124,6 +125,8 @@ class TranslateManager : public content::NotificationObserver,
|
| public:
|
| virtual void OnLanguageDetection(
|
| const LanguageDetectionDetails& details) = 0;
|
| + virtual void OnTranslateError(
|
| + const TranslateErrorDetails& details) = 0;
|
| };
|
|
|
| // Adds/removes observer.
|
| @@ -191,6 +194,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:
|
|
|