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 <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "chrome/browser/ui/translate/translate_bubble_model.h" | 17 #include "chrome/browser/ui/translate/translate_bubble_model.h" |
18 #include "chrome/common/translate/translate_errors.h" | 18 #include "components/translate/core/common/translate_errors.h" |
19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
20 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
21 | 21 |
22 template <typename T> struct DefaultSingletonTraits; | 22 template <typename T> struct DefaultSingletonTraits; |
23 class GURL; | 23 class GURL; |
24 struct LanguageDetectionDetails; | 24 struct LanguageDetectionDetails; |
25 struct PageTranslatedDetails; | 25 struct PageTranslatedDetails; |
26 class PrefService; | 26 class PrefService; |
27 class Profile; | 27 class Profile; |
28 struct ShortcutConfiguration; | 28 struct ShortcutConfiguration; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // An instance of TranslateAcceptLanguages which manages Accept languages of | 232 // An instance of TranslateAcceptLanguages which manages Accept languages of |
233 // each profiles. | 233 // each profiles. |
234 scoped_ptr<TranslateAcceptLanguages> accept_languages_; | 234 scoped_ptr<TranslateAcceptLanguages> accept_languages_; |
235 | 235 |
236 base::WeakPtrFactory<TranslateManager> weak_method_factory_; | 236 base::WeakPtrFactory<TranslateManager> weak_method_factory_; |
237 | 237 |
238 DISALLOW_COPY_AND_ASSIGN(TranslateManager); | 238 DISALLOW_COPY_AND_ASSIGN(TranslateManager); |
239 }; | 239 }; |
240 | 240 |
241 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ | 241 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_MANAGER_H_ |
OLD | NEW |