Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: chrome/renderer/translate/translate_helper.h

Issue 93603006: Move Translate-related files to components/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/renderer/DEPS ('k') | chrome/renderer/translate/translate_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/DEPS ('k') | chrome/renderer/translate/translate_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698