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, |