| OLD | NEW |
| 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 COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback_list.h" | 13 #include "base/callback_list.h" |
| 14 #include "base/feature_list.h" | 14 #include "base/feature_list.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "components/translate/core/browser/language_state.h" | 18 #include "components/translate/core/browser/language_state.h" |
| 19 #include "components/translate/core/common/translate_errors.h" | 19 #include "components/translate/core/common/translate_errors.h" |
| 20 | 20 |
| 21 class GURL; | |
| 22 class PrefService; | |
| 23 | |
| 24 namespace metrics { | 21 namespace metrics { |
| 25 class TranslateEventProto; | 22 class TranslateEventProto; |
| 26 } | 23 } |
| 27 | 24 |
| 28 namespace translate { | 25 namespace translate { |
| 29 | 26 |
| 30 extern const base::Feature kTranslateLanguageByULP; | 27 extern const base::Feature kTranslateLanguageByULP; |
| 31 | 28 |
| 32 class TranslateClient; | 29 class TranslateClient; |
| 33 class TranslateDriver; | 30 class TranslateDriver; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // By default, don't offer to translate in builds lacking an API key. For | 171 // By default, don't offer to translate in builds lacking an API key. For |
| 175 // testing, set to true to offer anyway. | 172 // testing, set to true to offer anyway. |
| 176 static bool ignore_missing_key_for_testing_; | 173 static bool ignore_missing_key_for_testing_; |
| 177 | 174 |
| 178 DISALLOW_COPY_AND_ASSIGN(TranslateManager); | 175 DISALLOW_COPY_AND_ASSIGN(TranslateManager); |
| 179 }; | 176 }; |
| 180 | 177 |
| 181 } // namespace translate | 178 } // namespace translate |
| 182 | 179 |
| 183 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ | 180 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ |
| OLD | NEW |