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 <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/gtest_prod_util.h" | |
14 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
16 #include "components/translate/core/browser/language_state.h" | 15 #include "components/translate/core/browser/language_state.h" |
17 #include "components/translate/core/common/translate_errors.h" | 16 #include "components/translate/core/common/translate_errors.h" |
18 | 17 |
19 class GURL; | 18 class GURL; |
20 class PrefService; | 19 class PrefService; |
21 | 20 |
22 namespace translate { | 21 namespace translate { |
23 | 22 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // By default, don't offer to translate in builds lacking an API key. For | 131 // By default, don't offer to translate in builds lacking an API key. For |
133 // testing, set to true to offer anyway. | 132 // testing, set to true to offer anyway. |
134 static bool ignore_missing_key_for_testing_; | 133 static bool ignore_missing_key_for_testing_; |
135 | 134 |
136 DISALLOW_COPY_AND_ASSIGN(TranslateManager); | 135 DISALLOW_COPY_AND_ASSIGN(TranslateManager); |
137 }; | 136 }; |
138 | 137 |
139 } // namespace translate | 138 } // namespace translate |
140 | 139 |
141 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ | 140 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_MANAGER_H_ |
OLD | NEW |