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

Side by Side Diff: chrome/browser/translate/translate_tab_helper.h

Issue 290573013: LanguageState should be owned by TranslateManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleting unwanted forward references Created 6 years, 7 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_
6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 16 matching lines...) Expand all
27 namespace base { 27 namespace base {
28 class File; 28 class File;
29 } 29 }
30 30
31 namespace content { 31 namespace content {
32 class BrowserContext; 32 class BrowserContext;
33 class WebContents; 33 class WebContents;
34 } 34 }
35 35
36 struct LanguageDetectionDetails; 36 struct LanguageDetectionDetails;
37 class LanguageState;
37 class PrefService; 38 class PrefService;
38 class TranslateAcceptLanguages; 39 class TranslateAcceptLanguages;
39 class TranslatePrefs; 40 class TranslatePrefs;
40 class TranslateManager; 41 class TranslateManager;
41 42
42 class TranslateTabHelper 43 class TranslateTabHelper
43 : public TranslateClient, 44 : public TranslateClient,
44 public content::WebContentsObserver, 45 public content::WebContentsObserver,
45 public content::WebContentsUserData<TranslateTabHelper> { 46 public content::WebContentsUserData<TranslateTabHelper> {
46 public: 47 public:
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 167
167 // Necessary for binding the callback to HandleCLDDataRequest on the blocking 168 // Necessary for binding the callback to HandleCLDDataRequest on the blocking
168 // pool and for delaying translation initialization until the page has 169 // pool and for delaying translation initialization until the page has
169 // finished loading on a reload. 170 // finished loading on a reload.
170 base::WeakPtrFactory<TranslateTabHelper> weak_pointer_factory_; 171 base::WeakPtrFactory<TranslateTabHelper> weak_pointer_factory_;
171 172
172 DISALLOW_COPY_AND_ASSIGN(TranslateTabHelper); 173 DISALLOW_COPY_AND_ASSIGN(TranslateTabHelper);
173 }; 174 };
174 175
175 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_ 176 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698