Chromium Code Reviews| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 virtual void InstantPageAboutToNavigateMainFrame( | 123 virtual void InstantPageAboutToNavigateMainFrame( |
| 124 const content::WebContents* contents, | 124 const content::WebContents* contents, |
| 125 const GURL& url) OVERRIDE; | 125 const GURL& url) OVERRIDE; |
| 126 virtual void FocusOmnibox(const content::WebContents* contents, | 126 virtual void FocusOmnibox(const content::WebContents* contents, |
| 127 OmniboxFocusState state) OVERRIDE; | 127 OmniboxFocusState state) OVERRIDE; |
| 128 virtual void NavigateToURL(const content::WebContents* contents, | 128 virtual void NavigateToURL(const content::WebContents* contents, |
| 129 const GURL& url, | 129 const GURL& url, |
| 130 content::PageTransition transition, | 130 content::PageTransition transition, |
| 131 WindowOpenDisposition disposition, | 131 WindowOpenDisposition disposition, |
| 132 bool is_search_type) OVERRIDE; | 132 bool is_search_type) OVERRIDE; |
| 133 virtual void PasteIntoOmnibox(const content::WebContents* contents, | |
| 134 const string16& text) OVERRIDE; | |
|
samarth
2013/08/06 18:39:44
nit: should be aligned with the const above.
jfweitz
2013/08/09 02:37:41
Done.
| |
| 133 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; | 135 virtual void DeleteMostVisitedItem(const GURL& url) OVERRIDE; |
| 134 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; | 136 virtual void UndoMostVisitedDeletion(const GURL& url) OVERRIDE; |
| 135 virtual void UndoAllMostVisitedDeletions() OVERRIDE; | 137 virtual void UndoAllMostVisitedDeletions() OVERRIDE; |
| 136 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; | 138 virtual void InstantPageLoadFailed(content::WebContents* contents) OVERRIDE; |
| 137 | 139 |
| 138 // Called when the default search provider changes. Resets InstantNTP. | 140 // Called when the default search provider changes. Resets InstantNTP. |
| 139 void OnDefaultSearchProviderChanged(const std::string& pref_name); | 141 void OnDefaultSearchProviderChanged(const std::string& pref_name); |
| 140 | 142 |
| 141 // Recreates |ntp_| using |instant_url|. | 143 // Recreates |ntp_| using |instant_url|. |
| 142 void ResetNTP(const std::string& instant_url); | 144 void ResetNTP(const std::string& instant_url); |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 156 | 158 |
| 157 // Preloaded InstantNTP. | 159 // Preloaded InstantNTP. |
| 158 scoped_ptr<InstantNTP> ntp_; | 160 scoped_ptr<InstantNTP> ntp_; |
| 159 | 161 |
| 160 PrefChangeRegistrar profile_pref_registrar_; | 162 PrefChangeRegistrar profile_pref_registrar_; |
| 161 | 163 |
| 162 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer); | 164 DISALLOW_COPY_AND_ASSIGN(InstantNTPPrerenderer); |
| 163 }; | 165 }; |
| 164 | 166 |
| 165 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ | 167 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_NTP_PRERENDERER_H_ |
| OLD | NEW |