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

Unified Diff: chrome/browser/instant/instant_model.h

Issue 11421079: Persist the Instant API to committed search result pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes Created 8 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
Index: chrome/browser/instant/instant_model.h
diff --git a/chrome/browser/instant/instant_model.h b/chrome/browser/instant/instant_model.h
index aacedd2f3ca5a4adeb89c86cb4301fa2f487dd70..f125fd530de0d14da23c7978d47f1d355a451961 100644
--- a/chrome/browser/instant/instant_model.h
+++ b/chrome/browser/instant/instant_model.h
@@ -12,7 +12,10 @@
class InstantController;
class InstantModelObserver;
-class TabContents;
+
+namespace content {
+class WebContents;
+}
// Holds state that is important to any views concerned with visibility and
// layout of the Instant preview.
@@ -31,8 +34,8 @@ class InstantModel {
int height,
InstantSizeUnits height_units);
- void SetPreviewContents(TabContents* preview_contents);
- TabContents* GetPreviewContents() const;
+ void SetPreviewContents(content::WebContents* preview_contents);
+ content::WebContents* GetPreviewContents() const;
// Add and remove observers.
void AddObserver(InstantModelObserver* observer) const;
@@ -46,7 +49,7 @@ class InstantModel {
// Weak. Remembers the last set preview contents to detect changes. Actual
// preview contents is fetched from the |controller_| as this may not always
// reflect the actual preview in effect.
- TabContents* preview_contents_;
+ content::WebContents* preview_contents_;
// Weak. The controller currently holds some model state.
// TODO(dhollowa): Remove this, transfer all model state to InstantModel.

Powered by Google App Engine
This is Rietveld 408576698