| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ | 5 #ifndef CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ |
| 6 #define CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ | 6 #define CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 13 #include "chrome/common/translate/translate_errors.h" | 13 #include "components/translate/core/common/translate_errors.h" |
| 14 #include "content/public/renderer/render_view_observer.h" | 14 #include "content/public/renderer/render_view_observer.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 class WebDocument; | 17 class WebDocument; |
| 18 class WebFrame; | 18 class WebFrame; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // This class deals with page translation. | 21 // This class deals with page translation. |
| 22 // There is one TranslateHelper per RenderView. | 22 // There is one TranslateHelper per RenderView. |
| 23 | 23 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // time from showing infobar to requesting translation. | 145 // time from showing infobar to requesting translation. |
| 146 base::TimeTicks language_determined_time_; | 146 base::TimeTicks language_determined_time_; |
| 147 | 147 |
| 148 // Method factory used to make calls to TranslatePageImpl. | 148 // Method factory used to make calls to TranslatePageImpl. |
| 149 base::WeakPtrFactory<TranslateHelper> weak_method_factory_; | 149 base::WeakPtrFactory<TranslateHelper> weak_method_factory_; |
| 150 | 150 |
| 151 DISALLOW_COPY_AND_ASSIGN(TranslateHelper); | 151 DISALLOW_COPY_AND_ASSIGN(TranslateHelper); |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 #endif // CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ | 154 #endif // CHROME_RENDERER_TRANSLATE_TRANSLATE_HELPER_H_ |
| OLD | NEW |