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_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_FACTORY_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 static AppListSyncableServiceFactory* GetInstance(); | 25 static AppListSyncableServiceFactory* GetInstance(); |
26 | 26 |
27 static KeyedService* BuildInstanceFor( | 27 static KeyedService* BuildInstanceFor( |
28 content::BrowserContext* browser_context); | 28 content::BrowserContext* browser_context); |
29 | 29 |
30 private: | 30 private: |
31 friend struct DefaultSingletonTraits<AppListSyncableServiceFactory>; | 31 friend struct DefaultSingletonTraits<AppListSyncableServiceFactory>; |
32 | 32 |
33 AppListSyncableServiceFactory(); | 33 AppListSyncableServiceFactory(); |
34 virtual ~AppListSyncableServiceFactory(); | 34 ~AppListSyncableServiceFactory() override; |
35 | 35 |
36 // BrowserContextKeyedServiceFactory: | 36 // BrowserContextKeyedServiceFactory: |
37 virtual KeyedService* BuildServiceInstanceFor( | 37 KeyedService* BuildServiceInstanceFor( |
38 content::BrowserContext* profile) const override; | 38 content::BrowserContext* profile) const override; |
39 virtual void RegisterProfilePrefs( | 39 void RegisterProfilePrefs( |
40 user_prefs::PrefRegistrySyncable* registry) override; | 40 user_prefs::PrefRegistrySyncable* registry) override; |
41 virtual content::BrowserContext* GetBrowserContextToUse( | 41 content::BrowserContext* GetBrowserContextToUse( |
42 content::BrowserContext* context) const override; | 42 content::BrowserContext* context) const override; |
43 virtual bool ServiceIsCreatedWithBrowserContext() const override; | 43 bool ServiceIsCreatedWithBrowserContext() const override; |
44 virtual bool ServiceIsNULLWhileTesting() const override; | 44 bool ServiceIsNULLWhileTesting() const override; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(AppListSyncableServiceFactory); | 46 DISALLOW_COPY_AND_ASSIGN(AppListSyncableServiceFactory); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace app_list | 49 } // namespace app_list |
50 | 50 |
51 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_FACTORY_H_ | 51 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_FACTORY_H_ |
OLD | NEW |