OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/task.h" | 15 #include "base/task.h" |
16 #include "chrome/browser/prefs/pref_change_registrar.h" | 16 #include "chrome/browser/prefs/pref_change_registrar.h" |
17 #include "chrome/common/net/url_fetcher.h" | |
18 #include "chrome/common/translate_errors.h" | 17 #include "chrome/common/translate_errors.h" |
19 #include "content/common/notification_observer.h" | 18 #include "content/common/notification_observer.h" |
20 #include "content/common/notification_registrar.h" | 19 #include "content/common/notification_registrar.h" |
| 20 #include "content/common/url_fetcher.h" |
21 | 21 |
22 template <typename T> struct DefaultSingletonTraits; | 22 template <typename T> struct DefaultSingletonTraits; |
23 class GURL; | 23 class GURL; |
24 struct PageTranslatedDetails; | 24 struct PageTranslatedDetails; |
25 class PrefService; | 25 class PrefService; |
26 class TabContents; | 26 class TabContents; |
27 class TranslateInfoBarDelegate; | 27 class TranslateInfoBarDelegate; |
28 | 28 |
29 // The TranslateManager class is responsible for showing an info-bar when a page | 29 // The TranslateManager class is responsible for showing an info-bar when a page |
30 // in a language different than the user language is loaded. It triggers the | 30 // in a language different than the user language is loaded. It triggers the |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // server. | 180 // server. |
181 std::vector<PendingRequest> pending_requests_; | 181 std::vector<PendingRequest> pending_requests_; |
182 | 182 |
183 // The languages supported by the translation server. | 183 // The languages supported by the translation server. |
184 static base::LazyInstance<std::set<std::string> > supported_languages_; | 184 static base::LazyInstance<std::set<std::string> > supported_languages_; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(TranslateManager); | 186 DISALLOW_COPY_AND_ASSIGN(TranslateManager); |
187 }; | 187 }; |
188 | 188 |
189 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ | 189 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ |
OLD | NEW |