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

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

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_LANGUAGE_LIST_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_LANGUAGE_LIST_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_LANGUAGE_LIST_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_LANGUAGE_LIST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_list.h" 12 #include "base/callback_list.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 15
16 class GURL;
17
18 namespace translate {
16 struct TranslateEventDetails; 19 struct TranslateEventDetails;
droger 2014/07/09 07:52:44 Nit: move these further down after line 23.
nshaik 2014/07/09 08:56:51 Done.
17 class GURL;
18 class TranslateURLFetcher; 20 class TranslateURLFetcher;
21 }
22
23 namespace translate {
19 24
20 // The TranslateLanguageList class is responsible for maintaining the latest 25 // The TranslateLanguageList class is responsible for maintaining the latest
21 // supporting language list. 26 // supporting language list.
22 class TranslateLanguageList { 27 class TranslateLanguageList {
23 public: 28 public:
24 static const int kFetcherId = 1; 29 static const int kFetcherId = 1;
25 30
26 TranslateLanguageList(); 31 TranslateLanguageList();
27 virtual ~TranslateLanguageList(); 32 virtual ~TranslateLanguageList();
28 33
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // A LanguageListFetcher instance to fetch a server providing supported 111 // A LanguageListFetcher instance to fetch a server providing supported
107 // language list including alpha languages. 112 // language list including alpha languages.
108 scoped_ptr<TranslateURLFetcher> language_list_fetcher_; 113 scoped_ptr<TranslateURLFetcher> language_list_fetcher_;
109 114
110 // The last-updated time when the language list is sent. 115 // The last-updated time when the language list is sent.
111 base::Time last_updated_; 116 base::Time last_updated_;
112 117
113 DISALLOW_COPY_AND_ASSIGN(TranslateLanguageList); 118 DISALLOW_COPY_AND_ASSIGN(TranslateLanguageList);
114 }; 119 };
115 120
121 } // namespace translate
122
116 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_LANGUAGE_LIST_H_ 123 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_LANGUAGE_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698