OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_tab.h" | 5 #include "chrome/browser/ui/search/instant_tab.h" |
6 #include "content/public/browser/web_contents.h" | 6 #include "content/public/browser/web_contents.h" |
7 | 7 |
8 InstantTab::InstantTab(InstantPage::Delegate* delegate) | 8 InstantTab::InstantTab(InstantPage::Delegate* delegate, |
9 : InstantPage(delegate, "") { | 9 bool off_the_record) |
| 10 : InstantPage(delegate, "", off_the_record) { |
10 } | 11 } |
11 | 12 |
12 InstantTab::~InstantTab() { | 13 InstantTab::~InstantTab() { |
13 } | 14 } |
14 | 15 |
15 void InstantTab::Init(content::WebContents* contents) { | 16 void InstantTab::Init(content::WebContents* contents) { |
16 SetContents(contents); | 17 SetContents(contents); |
17 } | 18 } |
18 | 19 |
19 bool InstantTab::ShouldProcessAboutToNavigateMainFrame() { | 20 bool InstantTab::ShouldProcessAboutToNavigateMainFrame() { |
(...skipping 16 matching lines...) Expand all Loading... |
36 return true; | 37 return true; |
37 } | 38 } |
38 | 39 |
39 bool InstantTab::ShouldProcessUndoMostVisitedDeletion() { | 40 bool InstantTab::ShouldProcessUndoMostVisitedDeletion() { |
40 return true; | 41 return true; |
41 } | 42 } |
42 | 43 |
43 bool InstantTab::ShouldProcessUndoAllMostVisitedDeletions() { | 44 bool InstantTab::ShouldProcessUndoAllMostVisitedDeletions() { |
44 return true; | 45 return true; |
45 } | 46 } |
OLD | NEW |