| 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_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ | 5 #ifndef COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ |
| 6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ | 6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_list.h" | 10 #include "base/callback_list.h" |
| 11 #include "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 15 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 16 #include "components/prefs/pref_member.h" | 17 #include "components/prefs/pref_member.h" |
| 17 #include "ios/web/public/web_state/web_state_observer.h" | 18 #include "ios/web/public/web_state/web_state_observer.h" |
| 18 | 19 |
| 19 class GURL; | 20 class GURL; |
| 20 @class JsLanguageDetectionManager; | 21 @class JsLanguageDetectionManager; |
| 21 class PrefService; | 22 class PrefService; |
| 22 | 23 |
| 23 namespace base { | 24 namespace base { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 base::scoped_nsobject<JsLanguageDetectionManager> js_manager_; | 87 base::scoped_nsobject<JsLanguageDetectionManager> js_manager_; |
| 87 BooleanPrefMember translate_enabled_; | 88 BooleanPrefMember translate_enabled_; |
| 88 base::WeakPtrFactory<LanguageDetectionController> weak_method_factory_; | 89 base::WeakPtrFactory<LanguageDetectionController> weak_method_factory_; |
| 89 | 90 |
| 90 DISALLOW_COPY_AND_ASSIGN(LanguageDetectionController); | 91 DISALLOW_COPY_AND_ASSIGN(LanguageDetectionController); |
| 91 }; | 92 }; |
| 92 | 93 |
| 93 } // namespace translate | 94 } // namespace translate |
| 94 | 95 |
| 95 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ | 96 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_LANGUAGE_DETECTION_CONTROLLER_H_ |
| OLD | NEW |