| 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_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ |
| 6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ | 6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void OnPageTranslated(const std::string& original_lang, | 102 void OnPageTranslated(const std::string& original_lang, |
| 103 const std::string& translated_lang, | 103 const std::string& translated_lang, |
| 104 TranslateErrors::Type error_type); | 104 TranslateErrors::Type error_type); |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 // The navigation controller of the tab we are associated with. | 107 // The navigation controller of the tab we are associated with. |
| 108 content::NavigationController* navigation_controller_; | 108 content::NavigationController* navigation_controller_; |
| 109 | 109 |
| 110 TranslateManager* translate_manager_; | 110 TranslateManager* translate_manager_; |
| 111 | 111 |
| 112 ObserverList<Observer, true> observer_list_; | 112 base::ObserverList<Observer, true> observer_list_; |
| 113 | 113 |
| 114 // Max number of attempts before checking if a page has been reloaded. | 114 // Max number of attempts before checking if a page has been reloaded. |
| 115 int max_reload_check_attempts_; | 115 int max_reload_check_attempts_; |
| 116 | 116 |
| 117 base::WeakPtrFactory<ContentTranslateDriver> weak_pointer_factory_; | 117 base::WeakPtrFactory<ContentTranslateDriver> weak_pointer_factory_; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); | 119 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace translate | 122 } // namespace translate |
| 123 | 123 |
| 124 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ | 124 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ |
| OLD | NEW |