| 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 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 virtual void InstantPageAboutToNavigateMainFrame( | 121 virtual void InstantPageAboutToNavigateMainFrame( |
| 122 const content::WebContents* contents, | 122 const content::WebContents* contents, |
| 123 const GURL& url) OVERRIDE; | 123 const GURL& url) OVERRIDE; |
| 124 virtual void FocusOmnibox(const content::WebContents* contents, | 124 virtual void FocusOmnibox(const content::WebContents* contents, |
| 125 OmniboxFocusState state) OVERRIDE; | 125 OmniboxFocusState state) OVERRIDE; |
| 126 virtual void NavigateToURL(const content::WebContents* contents, | 126 virtual void NavigateToURL(const content::WebContents* contents, |
| 127 const GURL& url, | 127 const GURL& url, |
| 128 content::PageTransition transition, | 128 content::PageTransition transition, |
| 129 WindowOpenDisposition disposition, | 129 WindowOpenDisposition disposition, |
| 130 bool is_search_type) OVERRIDE; | 130 bool is_search_type) OVERRIDE; |
| 131 virtual void PasteIntoOmnibox(const content::WebContents* contents) OVERRIDE; |
| 131 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; | 132 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; |
| 132 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; | 133 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; |
| 133 virtual void UndoAllMostVisitedDeletions() OVERRIDE; | 134 virtual void UndoAllMostVisitedDeletions() OVERRIDE; |
| 134 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; | 135 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; |
| 135 | 136 |
| 136 // Called when the default search provider changes. Resets InstantNTP. | 137 // Called when the default search provider changes. Resets InstantNTP. |
| 137 void OnDefaultSearchProviderChanged(const std::string& pref_name); | 138 void OnDefaultSearchProviderChanged(const std::string& pref_name); |
| 138 | 139 |
| 139 // Recreates |ntp_| using |instant_url|. | 140 // Recreates |ntp_| using |instant_url|. |
| 140 void ResetNTP(const std::string& instant_url); | 141 void ResetNTP(const std::string& instant_url); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 157 | 158 |
| 158 // Preloaded InstantNTP. | 159 // Preloaded InstantNTP. |
| 159 scoped_ptr<InstantNTP> ntp_; | 160 scoped_ptr<InstantNTP> ntp_; |
| 160 | 161 |
| 161 PrefChangeRegistrar profile_pref_registrar_; | 162 PrefChangeRegistrar profile_pref_registrar_; |
| 162 | 163 |
| 163 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer); | 164 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer); |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ | 167 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ |
| OLD | NEW |