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

Unified Diff: components/translate/core/browser/translate_client.h

Issue 225263017: Move TranslateManager::IsTranslatableURL to be a client-level concept. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_client.h
diff --git a/components/translate/core/browser/translate_client.h b/components/translate/core/browser/translate_client.h
index c0c475cb1e80935bcf46440ecc3423d915114b09..13e4d989f14092c9f18f1f8d9dcfa3bae5d05a8c 100644
--- a/components/translate/core/browser/translate_client.h
+++ b/components/translate/core/browser/translate_client.h
@@ -12,6 +12,7 @@
#include "components/translate/core/browser/translate_step.h"
#include "components/translate/core/common/translate_errors.h"
+class GURL;
class PrefService;
class TranslateAcceptLanguages;
class TranslateDriver;
@@ -42,6 +43,9 @@ class TranslateClient {
const std::string target_language,
TranslateErrors::Type error_type,
bool triggered_from_menu) = 0;
+
+ // Returns true if the URL can be translated.
+ virtual bool IsTranslatableURL(const GURL& url) = 0;
};
#endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_CLIENT_H_
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698