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_IOS_TRANSLATE_DRIVER_H_ | 5 #ifndef COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_ |
6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_ | 6 #define COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "components/translate/core/browser/translate_driver.h" | 12 #include "components/translate/core/browser/translate_driver.h" |
13 #include "components/translate/ios/browser/language_detection_controller.h" | 13 #include "components/translate/ios/browser/language_detection_controller.h" |
14 #include "components/translate/ios/browser/translate_controller.h" | 14 #include "components/translate/ios/browser/translate_controller.h" |
15 #include "ios/web/public/web_state/web_state_observer.h" | 15 #include "ios/web/public/web_state/web_state_observer.h" |
16 | 16 |
17 @class CRWJSInjectionReceiver; | 17 @class CRWJSInjectionReceiver; |
18 | 18 |
19 namespace web { | 19 namespace web { |
20 class NavigationManager; | 20 class NavigationManager; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 std::string target_language_; | 118 std::string target_language_; |
119 | 119 |
120 base::WeakPtrFactory<IOSTranslateDriver> weak_method_factory_; | 120 base::WeakPtrFactory<IOSTranslateDriver> weak_method_factory_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(IOSTranslateDriver); | 122 DISALLOW_COPY_AND_ASSIGN(IOSTranslateDriver); |
123 }; | 123 }; |
124 | 124 |
125 } // namespace translate | 125 } // namespace translate |
126 | 126 |
127 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_ | 127 #endif // COMPONENTS_TRANSLATE_IOS_BROWSER_IOS_TRANSLATE_DRIVER_H_ |
OLD | NEW |