diff options
| author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-26 19:06:17 +0000 |
|---|---|---|
| committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-26 19:06:17 +0000 |
| commit | 768c547ef7c680bcfcf2616bf6e833849aea6db1 (patch) | |
| tree | 6264e6274a36648ac8b5af51d2d02fc38dff5b2c /chrome/browser/translate/translate_manager.h | |
| parent | c95c0219b5d1ea69f824c9b98d63919cba7ccd10 (diff) | |
| download | chromium_src-768c547ef7c680bcfcf2616bf6e833849aea6db1.zip chromium_src-768c547ef7c680bcfcf2616bf6e833849aea6db1.tar.gz chromium_src-768c547ef7c680bcfcf2616bf6e833849aea6db1.tar.bz2 | |
Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents().
BUG=98716
TBR=joi
Review URL: http://codereview.chromium.org/9030010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115800 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/translate/translate_manager.h')
| -rw-r--r-- | chrome/browser/translate/translate_manager.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h index 54687a9..5e7f089 100644 --- a/chrome/browser/translate/translate_manager.h +++ b/chrome/browser/translate/translate_manager.h @@ -24,7 +24,6 @@ template <typename T> struct DefaultSingletonTraits; class GURL; struct PageTranslatedDetails; class PrefService; -class TabContents; class TranslateInfoBarDelegate; namespace content { @@ -88,7 +87,7 @@ class TranslateManager : public content::NotificationObserver, } // Convenience method to know if a tab is showing a translate infobar. - static bool IsShowingTranslateInfobar(TabContents* tab); + static bool IsShowingTranslateInfobar(content::WebContents* tab); // Returns true if the URL can be translated. static bool IsTranslatableURL(const GURL& url); @@ -134,7 +133,8 @@ class TranslateManager : public content::NotificationObserver, // Starts the translation process on |tab| containing the page in the // |page_lang| language. - void InitiateTranslation(TabContents* tab, const std::string& page_lang); + void InitiateTranslation(content::WebContents* tab, + const std::string& page_lang); // If the tab identified by |process_id| and |render_id| has been closed, this // does nothing, otherwise it calls InitiateTranslation. @@ -149,11 +149,12 @@ class TranslateManager : public content::NotificationObserver, const std::string& target_lang); // Shows the after translate or error infobar depending on the details. - void PageTranslated(TabContents* tab, PageTranslatedDetails* details); + void PageTranslated(content::WebContents* tab, + PageTranslatedDetails* details); // Returns true if the passed language has been configured by the user as an // accept language. - bool IsAcceptLanguage(TabContents* tab, const std::string& language); + bool IsAcceptLanguage(content::WebContents* tab, const std::string& language); // Initializes the |accept_languages_| language table based on the associated // preference in |prefs|. |
