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

Unified Diff: chrome/browser/automation/automation_util.h

Issue 9085006: Replace Browser::GetTabContentsAt with GetWebContentsAt and update all callers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac yet again Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/automation/automation_provider_json.cc ('k') | chrome/browser/automation/automation_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_util.h
===================================================================
--- chrome/browser/automation/automation_util.h (revision 116244)
+++ chrome/browser/automation/automation_util.h (working copy)
@@ -18,7 +18,6 @@
class GURL;
class Profile;
class RenderViewHost;
-class TabContents;
class TabContentsWrapper;
namespace content {
@@ -43,10 +42,10 @@
// Returns the tab at |tab_index| within the browser at |browser_index| in the
// |BrowserList|. If any of these indices are invalid, NULL will be returned.
-TabContents* GetTabContentsAt(int browser_index, int tab_index);
+content::WebContents* GetWebContentsAt(int browser_index, int tab_index);
// Returns the browser that contains the given tab, or NULL if none exists.
-Browser* GetBrowserForTab(TabContents* tab);
+Browser* GetBrowserForTab(content::WebContents* tab);
// Gets the size and value of the cookie string for |url| in the given tab.
// Can be called from any thread.
@@ -100,7 +99,7 @@
AutomationId GetIdForExtension(const Extension* extension);
// Gets the tab for the given ID. Returns true on success.
-bool GetTabForId(const AutomationId& id, TabContents** tab);
+bool GetTabForId(const AutomationId& id, content::WebContents** tab);
// Gets the render view for the given ID. Returns true on success.
bool GetRenderViewForId(const AutomationId& id,
« no previous file with comments | « chrome/browser/automation/automation_provider_json.cc ('k') | chrome/browser/automation/automation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698