Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(578)

Side by Side Diff: chrome/browser/search/instant_service.h

Issue 1492423003: Rejigger ThemeService: move exposure of ThemeProvider interface to a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix that unittest Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SEARCH_INSTANT_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_
6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ 6 #define CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Called when we get new most visited items from TopSites, registered as an 138 // Called when we get new most visited items from TopSites, registered as an
139 // async callback. Parses them and sends them to the renderer via 139 // async callback. Parses them and sends them to the renderer via
140 // SendMostVisitedItems. 140 // SendMostVisitedItems.
141 void OnMostVisitedItemsReceived(const history::MostVisitedURLList& data); 141 void OnMostVisitedItemsReceived(const history::MostVisitedURLList& data);
142 142
143 // Notifies the observer about the last known most visited items. 143 // Notifies the observer about the last known most visited items.
144 void NotifyAboutMostVisitedItems(); 144 void NotifyAboutMostVisitedItems();
145 145
146 #if defined(ENABLE_THEMES) 146 #if defined(ENABLE_THEMES)
147 // Theme changed notification handler. 147 // Theme changed notification handler.
148 void OnThemeChanged(ThemeService* theme_service); 148 void OnThemeChanged();
149 #endif 149 #endif
150 150
151 void ResetInstantSearchPrerenderer(); 151 void ResetInstantSearchPrerenderer();
152 152
153 Profile* const profile_; 153 Profile* const profile_;
154 154
155 // The TemplateURLService that we are observing. It will outlive this 155 // The TemplateURLService that we are observing. It will outlive this
156 // InstantService due to the dependency declared in InstantServiceFactory. 156 // InstantService due to the dependency declared in InstantServiceFactory.
157 TemplateURLService* template_url_service_; 157 TemplateURLService* template_url_service_;
158 158
(...skipping 30 matching lines...) Expand all
189 // Suggestions Service to fetch server suggestions. 189 // Suggestions Service to fetch server suggestions.
190 suggestions::SuggestionsService* suggestions_service_; 190 suggestions::SuggestionsService* suggestions_service_;
191 191
192 // Used for Top Sites async retrieval. 192 // Used for Top Sites async retrieval.
193 base::WeakPtrFactory<InstantService> weak_ptr_factory_; 193 base::WeakPtrFactory<InstantService> weak_ptr_factory_;
194 194
195 DISALLOW_COPY_AND_ASSIGN(InstantService); 195 DISALLOW_COPY_AND_ASSIGN(InstantService);
196 }; 196 };
197 197
198 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ 198 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc ('k') | chrome/browser/search/instant_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698