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

Unified Diff: trunk/src/components/translate/core/browser/translate_driver.h

Issue 296003014: Revert 272217 "LanguageState should be owned by TranslateManager" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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: trunk/src/components/translate/core/browser/translate_driver.h
===================================================================
--- trunk/src/components/translate/core/browser/translate_driver.h (revision 272260)
+++ trunk/src/components/translate/core/browser/translate_driver.h (working copy)
@@ -8,6 +8,7 @@
#include <string>
class GURL;
+class LanguageState;
// Interface that allows Translate core code to interact with its driver (i.e.,
// obtain information from it and give information to it). A concrete
@@ -23,6 +24,9 @@
// Called when the page is "translated" state of the page changed.
virtual void OnIsPageTranslatedChanged() = 0;
+ // Gets the LanguageState associated with the driver.
+ virtual LanguageState& GetLanguageState() = 0;
+
// Translates the page contents from |source_lang| to |target_lang|.
virtual void TranslatePage(const std::string& translate_script,
const std::string& source_lang,

Powered by Google App Engine
This is Rietveld 408576698