| 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/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv
ice_factory.h" | 12 #include "components/keyed_service/content/refcounted_browser_context_keyed_serv
ice_factory.h" |
| 12 | 13 |
| 13 class Profile; | 14 class Profile; |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 template <typename T> | 17 template <typename T> |
| 17 struct DefaultSingletonTraits; | 18 struct DefaultSingletonTraits; |
| 18 } | 19 } |
| 19 | 20 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 50 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( | 51 scoped_refptr<RefcountedKeyedService> BuildServiceInstanceFor( |
| 51 content::BrowserContext* context) const override; | 52 content::BrowserContext* context) const override; |
| 52 void RegisterProfilePrefs( | 53 void RegisterProfilePrefs( |
| 53 user_prefs::PrefRegistrySyncable* registry) override; | 54 user_prefs::PrefRegistrySyncable* registry) override; |
| 54 bool ServiceIsNULLWhileTesting() const override; | 55 bool ServiceIsNULLWhileTesting() const override; |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(TopSitesFactory); | 57 DISALLOW_COPY_AND_ASSIGN(TopSitesFactory); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ | 60 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_FACTORY_H_ |
| OLD | NEW |