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

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

Issue 16413002: Moved theme related state from BrowserInstantController to InstantService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 6 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/search/search_tab_helper.h
diff --git a/chrome/browser/ui/search/search_tab_helper.h b/chrome/browser/ui/search/search_tab_helper.h
index 8dd771100bd814bded3345f691479189a6b21cb2..bdb5d63b39d713a58e5fb7e21864e20535910002 100644
--- a/chrome/browser/ui/search/search_tab_helper.h
+++ b/chrome/browser/ui/search/search_tab_helper.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/search/search_model.h"
#include "chrome/common/instant_types.h"
#include "content/public/browser/notification_observer.h"
@@ -50,6 +51,11 @@ class SearchTabHelper : public content::NotificationObserver,
bool UpdateLastKnownMostVisitedItems(
const std::vector<InstantMostVisitedItem>& items);
+ // Updates |last_known_theme_info_| with |theme_info|.
+ // Returns false if |theme_info| matches the |last_known_theme_info_|.
+ bool UpdateLastKnownThemeBackgroundInfo(
+ const ThemeBackgroundInfo& theme_info);
+
private:
friend class content::WebContentsUserData<SearchTabHelper>;
@@ -89,6 +95,9 @@ class SearchTabHelper : public content::NotificationObserver,
// Used to prevent sending duplicate IPC messages to the renderer.
std::vector<InstantMostVisitedItem> last_known_most_visited_items_;
+ // Tracks the last known theme background details.
+ scoped_ptr<ThemeBackgroundInfo> last_known_theme_info_;
samarth 2013/06/19 18:30:02 As discussed offline, let's track this in the rend
kmadhusu 2013/06/19 21:31:01 Done.
+
DISALLOW_COPY_AND_ASSIGN(SearchTabHelper);
};
« no previous file with comments | « chrome/browser/ui/search/instant_extended_interactive_uitest.cc ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698