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