Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: chrome/browser/translate/translate_manager.h

Issue 15881006: Added 'error logs' tab to chrome://translte-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698