OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ |
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ | 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/prefs/public/pref_change_registrar.h" | 17 #include "base/prefs/pref_change_registrar.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "chrome/common/translate_errors.h" | 19 #include "chrome/common/translate_errors.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
22 #include "net/url_request/url_fetcher_delegate.h" | 22 #include "net/url_request/url_fetcher_delegate.h" |
23 | 23 |
24 template <typename T> struct DefaultSingletonTraits; | 24 template <typename T> struct DefaultSingletonTraits; |
25 class GURL; | 25 class GURL; |
26 struct PageTranslatedDetails; | 26 struct PageTranslatedDetails; |
27 class PrefService; | 27 class PrefService; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // server. | 211 // server. |
212 std::vector<PendingRequest> pending_requests_; | 212 std::vector<PendingRequest> pending_requests_; |
213 | 213 |
214 // The languages supported by the translation server. | 214 // The languages supported by the translation server. |
215 static base::LazyInstance<std::set<std::string> > supported_languages_; | 215 static base::LazyInstance<std::set<std::string> > supported_languages_; |
216 | 216 |
217 DISALLOW_COPY_AND_ASSIGN(TranslateManager); | 217 DISALLOW_COPY_AND_ASSIGN(TranslateManager); |
218 }; | 218 }; |
219 | 219 |
220 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ | 220 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ |
OLD | NEW |