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

Unified Diff: chrome/browser/ui/browser_list.h

Issue 6930034: Print Preview: Print in the background. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build after r84303 Created 9 years, 8 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
Index: chrome/browser/ui/browser_list.h
===================================================================
--- chrome/browser/ui/browser_list.h (revision 84344)
+++ chrome/browser/ui/browser_list.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_BROWSER_LIST_H_
#pragma once
+#include <set>
#include <vector>
#include "base/observer_list.h"
@@ -218,7 +219,9 @@
// Returns the Browser instance associated with the current TabContents.
// Valid as long as !Done()
Browser* browser() const {
- return *browser_iterator_;
+ if (browser_iterator_ != BrowserList::end())
+ return *browser_iterator_;
+ return NULL;
}
// Returns the current TabContents, valid as long as !Done()
@@ -252,6 +255,9 @@
// tab index into the current Browser of the current web view
int web_view_index_;
+ // iterator over the TabContentsWrappers doing background printing.
+ std::set<TabContentsWrapper*>::const_iterator bg_printing_iterator_;
+
// 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.

Powered by Google App Engine
This is Rietveld 408576698