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

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

Issue 17303003: InstantExtended: hook up InstantTab in incognito. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile errors. 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
« no previous file with comments | « chrome/browser/ui/search/instant_ntp.cc ('k') | chrome/browser/ui/search/instant_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_overlay.h
diff --git a/chrome/browser/ui/search/instant_overlay.h b/chrome/browser/ui/search/instant_overlay.h
index beea995f548e41e13f6427f36b2621f0fc2e905c..93e6d663c0a2d10603702544c5afec968536bcd7 100644
--- a/chrome/browser/ui/search/instant_overlay.h
+++ b/chrome/browser/ui/search/instant_overlay.h
@@ -32,7 +32,8 @@ class InstantOverlay : public InstantPage,
static InstantOverlay* FromWebContents(const content::WebContents* contents);
InstantOverlay(InstantController* controller,
- const std::string& instant_url);
+ const std::string& instant_url,
+ bool is_incognito);
virtual ~InstantOverlay();
// Creates a new WebContents and loads |instant_url_| into it. Uses
@@ -64,11 +65,12 @@ class InstantOverlay : public InstantPage,
// to the history service had this WebContents not been used for Instant.
void DidNavigate(const history::HistoryAddPageArgs& add_page_args);
- // Overridden from InstantPage:
- virtual void Update(const string16& text,
- size_t selection_start,
- size_t selection_end,
- bool verbatim) OVERRIDE;
+ // Wrapper around InstantIPCSender::Update that also clears
+ // |last_navigation_|.
+ void Update(const string16& text,
+ size_t selection_start,
+ size_t selection_end,
+ bool verbatim);
private:
FRIEND_TEST_ALL_PREFIXES(InstantTest, InstantOverlayRefresh);
« no previous file with comments | « chrome/browser/ui/search/instant_ntp.cc ('k') | chrome/browser/ui/search/instant_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698