| 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_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 11 matching lines...) Expand all Loading... |
| 22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
| 23 | 23 |
| 24 class InstantIOContext; | 24 class InstantIOContext; |
| 25 struct InstantMostVisitedItem; | 25 struct InstantMostVisitedItem; |
| 26 class InstantSearchPrerenderer; | 26 class InstantSearchPrerenderer; |
| 27 class InstantServiceObserver; | 27 class InstantServiceObserver; |
| 28 class Profile; | 28 class Profile; |
| 29 struct TemplateURLData; | 29 struct TemplateURLData; |
| 30 class TemplateURLService; | 30 class TemplateURLService; |
| 31 struct ThemeBackgroundInfo; | 31 struct ThemeBackgroundInfo; |
| 32 class ThemeService; | |
| 33 | 32 |
| 34 namespace content { | 33 namespace content { |
| 35 class RenderProcessHost; | 34 class RenderProcessHost; |
| 36 } | 35 } |
| 37 | 36 |
| 38 // Tracks render process host IDs that are associated with Instant. | 37 // Tracks render process host IDs that are associated with Instant. |
| 39 class InstantService : public KeyedService, | 38 class InstantService : public KeyedService, |
| 40 public content::NotificationObserver, | 39 public content::NotificationObserver, |
| 41 public TemplateURLServiceObserver, | 40 public TemplateURLServiceObserver, |
| 42 public history::TopSitesObserver { | 41 public history::TopSitesObserver { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 std::unique_ptr<TemplateURLData> previous_default_search_provider_; | 168 std::unique_ptr<TemplateURLData> previous_default_search_provider_; |
| 170 GURL previous_google_base_url_; | 169 GURL previous_google_base_url_; |
| 171 | 170 |
| 172 // Used for Top Sites async retrieval. | 171 // Used for Top Sites async retrieval. |
| 173 base::WeakPtrFactory<InstantService> weak_ptr_factory_; | 172 base::WeakPtrFactory<InstantService> weak_ptr_factory_; |
| 174 | 173 |
| 175 DISALLOW_COPY_AND_ASSIGN(InstantService); | 174 DISALLOW_COPY_AND_ASSIGN(InstantService); |
| 176 }; | 175 }; |
| 177 | 176 |
| 178 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ | 177 #endif // CHROME_BROWSER_SEARCH_INSTANT_SERVICE_H_ |
| OLD | NEW |