OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HISTORY_TOP_SITES_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ |
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ | 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 private: | 41 private: |
42 friend struct DefaultSingletonTraits<TopSitesFactory>; | 42 friend struct DefaultSingletonTraits<TopSitesFactory>; |
43 | 43 |
44 TopSitesFactory(); | 44 TopSitesFactory(); |
45 ~TopSitesFactory() override; | 45 ~TopSitesFactory() override; |
46 | 46 |
47 // Overridden from BrowserContextKeyedServiceFactory. | 47 // Overridden from BrowserContextKeyedServiceFactory. |
48 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( | 48 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( |
49 content::BrowserContext* context) const override; | 49 content::BrowserContext* context) const override; |
50 void RegisterProfilePrefs( | |
51 user_prefs::PrefRegistrySyncable* registry) override; | |
52 bool ServiceIsNULLWhileTesting() const override; | 50 bool ServiceIsNULLWhileTesting() const override; |
53 | 51 |
54 DISALLOW_COPY_AND_ASSIGN(TopSitesFactory); | 52 DISALLOW_COPY_AND_ASSIGN(TopSitesFactory); |
55 }; | 53 }; |
56 | 54 |
57 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ | 55 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ |
OLD | NEW |