| 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 IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_CLIENT_H_ | 5 #ifndef IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_CLIENT_H_ |
| 6 #define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_CLIENT_H_ | 6 #define IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #import "base/mac/scoped_nsobject.h" | |
| 12 #include "components/translate/core/browser/translate_client.h" | 11 #include "components/translate/core/browser/translate_client.h" |
| 13 #include "components/translate/core/browser/translate_step.h" | 12 #include "components/translate/core/browser/translate_step.h" |
| 14 #include "components/translate/core/common/translate_errors.h" | 13 #include "components/translate/core/common/translate_errors.h" |
| 15 #import "components/translate/ios/browser/ios_translate_driver.h" | 14 #import "components/translate/ios/browser/ios_translate_driver.h" |
| 16 #include "ios/web/public/web_state/web_state_observer.h" | 15 #include "ios/web/public/web_state/web_state_observer.h" |
| 17 #import "ios/web/public/web_state/web_state_user_data.h" | 16 #import "ios/web/public/web_state/web_state_user_data.h" |
| 18 | 17 |
| 19 @protocol CRIWVTranslateDelegate; | 18 @protocol CRIWVTranslateDelegate; |
| 20 class PrefService; | 19 class PrefService; |
| 21 | 20 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 73 |
| 75 // Delegate provided by the embedder. | 74 // Delegate provided by the embedder. |
| 76 id<CRIWVTranslateDelegate> delegate_; // Weak. | 75 id<CRIWVTranslateDelegate> delegate_; // Weak. |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(CRIWVTranslateClient); | 77 DISALLOW_COPY_AND_ASSIGN(CRIWVTranslateClient); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace ios_web_view | 80 } // namespace ios_web_view |
| 82 | 81 |
| 83 #endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_CLIENT_H_ | 82 #endif // IOS_WEB_VIEW_INTERNAL_TRANSLATE_CRIWV_TRANSLATE_CLIENT_H_ |
| OLD | NEW |