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

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

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors Created 6 years, 5 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 CHROME_BROWSER_TRANSLATE_TRANSLATE_ACCEPT_LANGUAGES_H_ 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_ACCEPT_LANGUAGES_H_
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_ACCEPT_LANGUAGES_H_ 6 #define CHROME_BROWSER_TRANSLATE_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/basictypes.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 {
17
16 // TranslateAcceptLanguages tracks the value of the "Accept-Language" HTTP 18 // TranslateAcceptLanguages tracks the value of the "Accept-Language" HTTP
17 // header. 19 // header.
18 class TranslateAcceptLanguages { 20 class TranslateAcceptLanguages {
19 public: 21 public:
20 22
21 // |accept_languages_pref| is the path to the preference storing the accept 23 // |accept_languages_pref| is the path to the preference storing the accept
22 // languages. 24 // languages.
23 TranslateAcceptLanguages(PrefService* prefs, 25 TranslateAcceptLanguages(PrefService* prefs,
24 const char* accept_languages_pref); 26 const char* accept_languages_pref);
25 virtual ~TranslateAcceptLanguages(); 27 virtual ~TranslateAcceptLanguages();
(...skipping 17 matching lines...) Expand all
43 45
44 // Listens to accept languages changes. 46 // Listens to accept languages changes.
45 PrefChangeRegistrar pref_change_registrar_; 47 PrefChangeRegistrar pref_change_registrar_;
46 48
47 // Path of accept languages preference. 49 // Path of accept languages preference.
48 const std::string accept_languages_pref_; 50 const std::string accept_languages_pref_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(TranslateAcceptLanguages); 52 DISALLOW_COPY_AND_ASSIGN(TranslateAcceptLanguages);
51 }; 53 };
52 54
55 } // namespace translate
56
53 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_ACCEPT_LANGUAGES_H_ 57 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_ACCEPT_LANGUAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698