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

Unified Diff: chrome/browser/ui/search/search_model.h

Issue 10944016: Switch SearchTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const Created 8 years, 3 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/ui/search/search_delegate_unittest.cc ('k') | chrome/browser/ui/search/search_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/search_model.h
diff --git a/chrome/browser/ui/search/search_model.h b/chrome/browser/ui/search/search_model.h
index b1dcf3f7f431a37878793253cdc0fb41f870040a..14ecca0d5317752d8d789da3e6a37a6ec54f5260 100644
--- a/chrome/browser/ui/search/search_model.h
+++ b/chrome/browser/ui/search/search_model.h
@@ -9,8 +9,6 @@
#include "base/observer_list.h"
#include "chrome/browser/ui/search/search_types.h"
-class TabContents;
-
namespace content {
class WebContents;
}
@@ -24,7 +22,7 @@ class SearchModelObserver;
// changes.
class SearchModel {
public:
- explicit SearchModel(TabContents* contents);
+ explicit SearchModel(content::WebContents* web_contents);
~SearchModel();
// Change the mode. Change notifications are sent to observers. An animated
@@ -40,12 +38,12 @@ class SearchModel {
// This can be NULL if this is the browser model and it's accessed during
// startup or shutdown.
- const TabContents* tab_contents() const {
- return contents_;
+ const content::WebContents* web_contents() const {
+ return web_contents_;
}
- void set_tab_contents(TabContents* contents) {
- contents_ = contents;
+ void set_web_contents(content::WebContents* web_contents) {
+ web_contents_ = web_contents;
}
private:
@@ -53,7 +51,7 @@ class SearchModel {
Mode mode_;
// Weak. Used to access current profile to determine incognito status.
- TabContents* contents_;
+ content::WebContents* web_contents_;
// Observers.
ObserverList<SearchModelObserver> observers_;
« no previous file with comments | « chrome/browser/ui/search/search_delegate_unittest.cc ('k') | chrome/browser/ui/search/search_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698