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