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 #include "components/translate/content/browser/content_translate_driver.h" | 5 #include "components/translate/content/browser/content_translate_driver.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "components/translate/content/browser/browser_cld_data_provider.h" | 12 #include "components/translate/content/browser/browser_cld_data_provider.h" |
13 #include "components/translate/content/browser/browser_cld_data_provider_factory
.h" | 13 #include "components/translate/content/browser/browser_cld_data_provider_factory
.h" |
14 #include "components/translate/content/common/translate_messages.h" | 14 #include "components/translate/content/common/translate_messages.h" |
15 #include "components/translate/core/browser/translate_download_manager.h" | 15 #include "components/translate/core/browser/translate_download_manager.h" |
16 #include "components/translate/core/browser/translate_manager.h" | 16 #include "components/translate/core/browser/translate_manager.h" |
17 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
18 #include "content/public/browser/navigation_controller.h" | 18 #include "content/public/browser/navigation_controller.h" |
19 #include "content/public/browser/navigation_details.h" | 19 #include "content/public/browser/navigation_details.h" |
20 #include "content/public/browser/navigation_entry.h" | 20 #include "content/public/browser/navigation_entry.h" |
21 #include "content/public/browser/page_navigator.h" | 21 #include "content/public/browser/page_navigator.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 TranslateErrors::Type error_type) { | 255 TranslateErrors::Type error_type) { |
256 translate_manager_->PageTranslated( | 256 translate_manager_->PageTranslated( |
257 original_lang, translated_lang, error_type); | 257 original_lang, translated_lang, error_type); |
258 FOR_EACH_OBSERVER( | 258 FOR_EACH_OBSERVER( |
259 Observer, | 259 Observer, |
260 observer_list_, | 260 observer_list_, |
261 OnPageTranslated(original_lang, translated_lang, error_type)); | 261 OnPageTranslated(original_lang, translated_lang, error_type)); |
262 } | 262 } |
263 | 263 |
264 } // namespace translate | 264 } // namespace translate |
OLD | NEW |