| OLD | NEW |
| 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_prerenderer.h" | 5 #include "chrome/browser/ui/search/instant_ntp_prerenderer.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 197 } |
| 198 | 198 |
| 199 void InstantNTPPrerenderer::NavigateToURL(const content::WebContents* contents, | 199 void InstantNTPPrerenderer::NavigateToURL(const content::WebContents* contents, |
| 200 const GURL& url, | 200 const GURL& url, |
| 201 content::PageTransition transition, | 201 content::PageTransition transition, |
| 202 WindowOpenDisposition disposition, | 202 WindowOpenDisposition disposition, |
| 203 bool is_search_type) { | 203 bool is_search_type) { |
| 204 NOTREACHED(); | 204 NOTREACHED(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void InstantNTPPrerenderer::PasteIntoOmnibox( |
| 208 const content::WebContents* contents) { |
| 209 NOTREACHED(); |
| 210 } |
| 211 |
| 207 void InstantNTPPrerenderer::DeleteMostVisitedItem(const GURL& url) { | 212 void InstantNTPPrerenderer::DeleteMostVisitedItem(const GURL& url) { |
| 208 NOTREACHED(); | 213 NOTREACHED(); |
| 209 } | 214 } |
| 210 | 215 |
| 211 void InstantNTPPrerenderer::UndoMostVisitedDeletion(const GURL& url) { | 216 void InstantNTPPrerenderer::UndoMostVisitedDeletion(const GURL& url) { |
| 212 NOTREACHED(); | 217 NOTREACHED(); |
| 213 } | 218 } |
| 214 | 219 |
| 215 void InstantNTPPrerenderer::UndoAllMostVisitedDeletions() { | 220 void InstantNTPPrerenderer::UndoAllMostVisitedDeletions() { |
| 216 NOTREACHED(); | 221 NOTREACHED(); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 return false; | 280 return false; |
| 276 | 281 |
| 277 if (PageIsCurrent()) | 282 if (PageIsCurrent()) |
| 278 return false; | 283 return false; |
| 279 | 284 |
| 280 // The preloaded NTP does not support instant yet. If we're not in startup, | 285 // The preloaded NTP does not support instant yet. If we're not in startup, |
| 281 // always fall back to the local NTP. If we are in startup, use the local NTP | 286 // always fall back to the local NTP. If we are in startup, use the local NTP |
| 282 // (unless the finch flag to use the remote NTP is set). | 287 // (unless the finch flag to use the remote NTP is set). |
| 283 return !(InStartup() && chrome::ShouldPreferRemoteNTPOnStartup()); | 288 return !(InStartup() && chrome::ShouldPreferRemoteNTPOnStartup()); |
| 284 } | 289 } |
| OLD | NEW |