summaryrefslogtreecommitdiffstats
path: root/chrome/browser/translate/translate_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/translate/translate_manager.h')
-rw-r--r--chrome/browser/translate/translate_manager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h
index 7050484..48e1951 100644
--- a/chrome/browser/translate/translate_manager.h
+++ b/chrome/browser/translate/translate_manager.h
@@ -12,7 +12,6 @@
#include <vector>
#include "base/lazy_instance.h"
-#include "base/singleton.h"
#include "base/task.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/common/net/url_fetcher.h"
@@ -20,6 +19,7 @@
#include "chrome/common/notification_registrar.h"
#include "chrome/common/translate_errors.h"
+template <typename T> struct DefaultSingletonTraits;
class GURL;
struct PageTranslatedDetails;
class PrefService;
@@ -34,6 +34,9 @@ class TranslateInfoBarDelegate;
class TranslateManager : public NotificationObserver,
public URLFetcher::Delegate {
public:
+ // Returns the singleton instance.
+ static TranslateManager* GetInstance();
+
virtual ~TranslateManager();
// Translates the page contents from |source_lang| to |target_lang|.
@@ -77,9 +80,7 @@ class TranslateManager : public NotificationObserver,
// Convenience method to know if a tab is showing a translate infobar.
static bool IsShowingTranslateInfobar(TabContents* tab);
- // Returns true if the URL can be translated, if it is not an internal URL
- // (chrome:// and others) or a FTP page (as FTP pages tend to have long
- // lists of filenames that may confuse the CLD).
+ // Returns true if the URL can be translated.
static bool IsTranslatableURL(const GURL& url);
// Fills |languages| with the list of languages that the translate server can