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

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

Issue 2660883002: Introduce a Doodle Fetcher for NTP (Closed)
Patch Set: Tests work. Created 3 years, 10 months 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 <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 27
28 class InstantIOContext; 28 class InstantIOContext;
29 struct InstantMostVisitedItem; 29 struct InstantMostVisitedItem;
30 class InstantSearchPrerenderer; 30 class InstantSearchPrerenderer;
31 class InstantServiceObserver; 31 class InstantServiceObserver;
32 class Profile; 32 class Profile;
33 struct TemplateURLData; 33 struct TemplateURLData;
34 class TemplateURLService; 34 class TemplateURLService;
35 struct ThemeBackgroundInfo; 35 struct ThemeBackgroundInfo;
36 36
37 namespace doodle {
38 class DoodleFetcher;
39 }
40
37 namespace content { 41 namespace content {
38 class RenderProcessHost; 42 class RenderProcessHost;
39 } 43 }
40 44
41 namespace history { 45 namespace history {
42 class TopSites; 46 class TopSites;
43 } 47 }
44 48
45 // Tracks render process host IDs that are associated with Instant. 49 // Tracks render process host IDs that are associated with Instant.
46 class InstantService : public KeyedService, 50 class InstantService : public KeyedService,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 183
180 // Used to check whether notifications from TemplateURLService indicate a 184 // Used to check whether notifications from TemplateURLService indicate a
181 // change that affects the default search provider. 185 // change that affects the default search provider.
182 std::unique_ptr<TemplateURLData> previous_default_search_provider_; 186 std::unique_ptr<TemplateURLData> previous_default_search_provider_;
183 GURL previous_google_base_url_; 187 GURL previous_google_base_url_;
184 188
185 // Data sources for NTP tiles (aka Most Visited tiles). Only one of these will 189 // Data sources for NTP tiles (aka Most Visited tiles). Only one of these will
186 // be non-null. 190 // be non-null.
187 std::unique_ptr<ntp_tiles::MostVisitedSites> most_visited_sites_; 191 std::unique_ptr<ntp_tiles::MostVisitedSites> most_visited_sites_;
188 scoped_refptr<history::TopSites> top_sites_; 192 scoped_refptr<history::TopSites> top_sites_;
193 std::unique_ptr<doodle::DoodleFetcher> doodle_fetcher_;
189 194
190 // Used for Top Sites async retrieval. 195 // Used for Top Sites async retrieval.
191 base::WeakPtrFactory<InstantService> weak_ptr_factory_; 196 base::WeakPtrFactory<InstantService> weak_ptr_factory_;
192 197
193 DISALLOW_COPY_AND_ASSIGN(InstantService); 198 DISALLOW_COPY_AND_ASSIGN(InstantService);
194 }; 199 };
195 200
196 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ 201 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698