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

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

Issue 195553002: Consider the origin flag when loading the translate language list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | components/translate/core/browser/translate_language_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_language_list.h
diff --git a/components/translate/core/browser/translate_language_list.h b/components/translate/core/browser/translate_language_list.h
index effda56582b413294cf124ace0f4196818ba6f10..de8ce1704476b70ef6cbf545be9cb0eef1435b23 100644
--- a/components/translate/core/browser/translate_language_list.h
+++ b/components/translate/core/browser/translate_language_list.h
@@ -14,6 +14,7 @@
#include "base/time/time.h"
struct TranslateEventDetails;
+class GURL;
class TranslateURLFetcher;
// The TranslateLanguageList class is responsible for maintaining the latest
@@ -84,6 +85,9 @@ class TranslateLanguageList {
// server can translate to and from.
void SetSupportedLanguages(const std::string& language_list);
+ // Returns the url from which to load the list of languages.
+ GURL TranslateLanguageUrl();
+
// Callbacks called on translate events.
EventCallbackList callback_list_;
« no previous file with comments | « no previous file | components/translate/core/browser/translate_language_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698