| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/tab_contents/language_state.h" | 8 #include "chrome/browser/tab_contents/language_state.h" |
| 9 #include "chrome/common/translate/translate_errors.h" | 9 #include "components/translate/core/common/translate_errors.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| 11 #include "content/public/browser/web_contents_user_data.h" | 11 #include "content/public/browser/web_contents_user_data.h" |
| 12 | 12 |
| 13 struct LanguageDetectionDetails; | 13 struct LanguageDetectionDetails; |
| 14 | 14 |
| 15 class TranslateTabHelper | 15 class TranslateTabHelper |
| 16 : public content::WebContentsObserver, | 16 : public content::WebContentsObserver, |
| 17 public content::WebContentsUserData<TranslateTabHelper> { | 17 public content::WebContentsUserData<TranslateTabHelper> { |
| 18 public: | 18 public: |
| 19 virtual ~TranslateTabHelper(); | 19 virtual ~TranslateTabHelper(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 const std::string& translated_lang, | 37 const std::string& translated_lang, |
| 38 TranslateErrors::Type error_type); | 38 TranslateErrors::Type error_type); |
| 39 | 39 |
| 40 // Information about the language the page is in and has been translated to. | 40 // Information about the language the page is in and has been translated to. |
| 41 LanguageState language_state_; | 41 LanguageState language_state_; |
| 42 | 42 |
| 43 DISALLOW_COPY_AND_ASSIGN(TranslateTabHelper); | 43 DISALLOW_COPY_AND_ASSIGN(TranslateTabHelper); |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ | 46 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ |
| OLD | NEW |