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

Unified Diff: chrome/browser/translate/translate_manager.h

Issue 9030010: Move most of the remaining users of WebContentsObserver::tab_contents() to use web_contents(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tabs/tab_finder.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/translate_manager.h
===================================================================
--- chrome/browser/translate/translate_manager.h (revision 115777)
+++ chrome/browser/translate/translate_manager.h (working copy)
@@ -24,7 +24,6 @@
class GURL;
struct PageTranslatedDetails;
class PrefService;
-class TabContents;
class TranslateInfoBarDelegate;
namespace content {
@@ -88,7 +87,7 @@
}
// 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 @@
// 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 @@
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|.
« no previous file with comments | « chrome/browser/tabs/tab_finder.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698