OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ |
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ | 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "build/build_config.h" |
10 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 11 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
11 | 12 |
12 class SigninManager; | 13 class SigninManager; |
13 class SigninManagerBase; | 14 class SigninManagerBase; |
14 class PrefRegistrySimple; | 15 class PrefRegistrySimple; |
15 class Profile; | 16 class Profile; |
16 | 17 |
17 // Singleton that owns all SigninManagers and associates them with | 18 // Singleton that owns all SigninManagers and associates them with |
18 // Profiles. Listens for the Profile's destruction notification and cleans up | 19 // Profiles. Listens for the Profile's destruction notification and cleans up |
19 // the associated SigninManager. | 20 // the associated SigninManager. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // List of observers. Checks that list is empty on destruction. | 82 // List of observers. Checks that list is empty on destruction. |
82 mutable base::ObserverList<Observer, true> observer_list_; | 83 mutable base::ObserverList<Observer, true> observer_list_; |
83 | 84 |
84 // BrowserContextKeyedServiceFactory: | 85 // BrowserContextKeyedServiceFactory: |
85 KeyedService* BuildServiceInstanceFor( | 86 KeyedService* BuildServiceInstanceFor( |
86 content::BrowserContext* profile) const override; | 87 content::BrowserContext* profile) const override; |
87 void BrowserContextShutdown(content::BrowserContext* context) override; | 88 void BrowserContextShutdown(content::BrowserContext* context) override; |
88 }; | 89 }; |
89 | 90 |
90 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ | 91 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ |
OLD | NEW |