summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 07:58:34 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-04 07:58:34 +0000
commit57c6a6579cf274fe37d6196931a3034d90da7113 (patch)
treeec42313580156ccc039b5fee714ee12259cb08ee /chrome/browser/browser_list.h
parentb23c9e1f05d474adc327c85d87eacc77554976e0 (diff)
downloadchromium_src-57c6a6579cf274fe37d6196931a3034d90da7113.zip
chromium_src-57c6a6579cf274fe37d6196931a3034d90da7113.tar.gz
chromium_src-57c6a6579cf274fe37d6196931a3034d90da7113.tar.bz2
Replace all occurrances of WebContents with TabContents.
Review URL: http://codereview.chromium.org/99177 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15194 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.h')
-rw-r--r--chrome/browser/browser_list.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/chrome/browser/browser_list.h b/chrome/browser/browser_list.h
index faa2f64..c73ac2e 100644
--- a/chrome/browser/browser_list.h
+++ b/chrome/browser/browser_list.h
@@ -124,7 +124,7 @@ class BrowserList {
static list_type last_active_browsers_;
};
-class WebContents;
+class TabContents;
// Iterates through all web view hosts in all browser windows. Because the
// renderers act asynchronously, getting a host through this interface does
@@ -132,36 +132,36 @@ class WebContents;
// browser windows or tabs while iterating may cause incorrect behavior.
//
// Example:
-// for (WebContentsIterator iterator; !iterator.done(); iterator++) {
-// WebContents* cur = *iterator;
+// for (TabContentsIterator iterator; !iterator.done(); iterator++) {
+// TabContents* cur = *iterator;
// -or-
-// iterator->operationOnWebContents();
+// iterator->operationOnTabContents();
// ...
// }
-class WebContentsIterator {
+class TabContentsIterator {
public:
- WebContentsIterator();
+ TabContentsIterator();
// Returns true if we are past the last Browser.
bool done() const {
return cur_ == NULL;
}
- // Returns the current WebContents, valid as long as !Done()
- WebContents* operator->() const {
+ // Returns the current TabContents, valid as long as !Done()
+ TabContents* operator->() const {
return cur_;
}
- WebContents* operator*() const {
+ TabContents* operator*() const {
return cur_;
}
// Incrementing operators, valid as long as !Done()
- WebContents* operator++() { // ++preincrement
+ TabContents* operator++() { // ++preincrement
Advance();
return cur_;
}
- WebContents* operator++(int) { // postincrement++
- WebContents* tmp = cur_;
+ TabContents* operator++(int) { // postincrement++
+ TabContents* tmp = cur_;
Advance();
return tmp;
}
@@ -178,10 +178,10 @@ class WebContentsIterator {
// tab index into the current Browser of the current web view
int web_view_index_;
- // Current WebContents, or NULL if we're at the end of the list. This can
+ // Current TabContents, or NULL if we're at the end of the list. This can
// be extracted given the browser iterator and index, but it's nice to cache
// this since the caller may access the current host many times.
- WebContents* cur_;
+ TabContents* cur_;
};
#endif // CHROME_BROWSER_BROWSER_LIST_H__