| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 namespace translate { | 12 namespace translate { |
| 13 | 13 |
| 14 class TranslateDriver; | 14 class TranslateDriver; |
| 15 | 15 |
| 16 // This class holds the language state of the current page. | 16 // This class holds the language state of the current page. |
| 17 // There is one LanguageState instance per tab. | 17 // There is one LanguageState instance per tab. |
| 18 // It is used to determine when navigating to a new page whether it should | 18 // It is used to determine when navigating to a new page whether it should |
| 19 // automatically be translated. | 19 // automatically be translated. |
| 20 // This auto-translate behavior is the expected behavior when: | 20 // This auto-translate behavior is the expected behavior when: |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 // Whether the Translate is enabled. | 120 // Whether the Translate is enabled. |
| 121 bool translate_enabled_; | 121 bool translate_enabled_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(LanguageState); | 123 DISALLOW_COPY_AND_ASSIGN(LanguageState); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace translate | 126 } // namespace translate |
| 127 | 127 |
| 128 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ | 128 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_LANGUAGE_STATE_H_ |
| OLD | NEW |