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