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

Side by Side Diff: components/translate/core/browser/language_state.h

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/translate/content/renderer/translate_helper.h ('k') | components/translate/core/browser/language_state_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698