| 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_TRANSLATE_ACCEPT_LANGUAGES_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_ACCEPT_LANGUAGES_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_ACCEPT_LANGUAGES_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_ACCEPT_LANGUAGES_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/macros.h" |
| 12 #include "base/prefs/pref_change_registrar.h" | 12 #include "base/prefs/pref_change_registrar.h" |
| 13 | 13 |
| 14 class PrefService; | 14 class PrefService; |
| 15 | 15 |
| 16 namespace translate { | 16 namespace translate { |
| 17 | 17 |
| 18 // TranslateAcceptLanguages tracks the value of the "Accept-Language" HTTP | 18 // TranslateAcceptLanguages tracks the value of the "Accept-Language" HTTP |
| 19 // header. | 19 // header. |
| 20 class TranslateAcceptLanguages { | 20 class TranslateAcceptLanguages { |
| 21 public: | 21 public: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 47 | 47 |
| 48 // Path of accept languages preference. | 48 // Path of accept languages preference. |
| 49 const std::string accept_languages_pref_; | 49 const std::string accept_languages_pref_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(TranslateAcceptLanguages); | 51 DISALLOW_COPY_AND_ASSIGN(TranslateAcceptLanguages); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace translate | 54 } // namespace translate |
| 55 | 55 |
| 56 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_ACCEPT_LANGUAGES_H_ | 56 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_ACCEPT_LANGUAGES_H_ |
| OLD | NEW |