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

Side by Side Diff: chrome/browser/ui/search/instant_ntp.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/search/instant_ntp.h ('k') | chrome/browser/ui/search/instant_overlay.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/search/instant_ntp.h" 5 #include "chrome/browser/ui/search/instant_ntp.h"
6 6
7 #include "content/public/browser/navigation_entry.h" 7 #include "content/public/browser/navigation_entry.h"
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 9
10 InstantNTP::InstantNTP(InstantPage::Delegate* delegate, 10 InstantNTP::InstantNTP(InstantPage::Delegate* delegate,
11 const std::string& instant_url) 11 const std::string& instant_url,
12 : InstantPage(delegate, instant_url), 12 bool is_incognito)
13 : InstantPage(delegate, instant_url, is_incognito),
13 loader_(this) { 14 loader_(this) {
14 } 15 }
15 16
16 InstantNTP::~InstantNTP() { 17 InstantNTP::~InstantNTP() {
17 } 18 }
18 19
19 void InstantNTP::InitContents(Profile* profile, 20 void InstantNTP::InitContents(Profile* profile,
20 const content::WebContents* active_tab, 21 const content::WebContents* active_tab,
21 const base::Closure& on_stale_callback) { 22 const base::Closure& on_stale_callback) {
22 loader_.Init(GURL(instant_url()), profile, active_tab, on_stale_callback); 23 loader_.Init(GURL(instant_url()), profile, active_tab, on_stale_callback);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void InstantNTP::LoadCompletedMainFrame() { 55 void InstantNTP::LoadCompletedMainFrame() {
55 } 56 }
56 57
57 bool InstantNTP::ShouldProcessRenderViewCreated() { 58 bool InstantNTP::ShouldProcessRenderViewCreated() {
58 return true; 59 return true;
59 } 60 }
60 61
61 bool InstantNTP::ShouldProcessRenderViewGone() { 62 bool InstantNTP::ShouldProcessRenderViewGone() {
62 return true; 63 return true;
63 } 64 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/instant_ntp.h ('k') | chrome/browser/ui/search/instant_overlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698