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_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "components/browser_context_keyed_service/browser_context_keyed_service
_factory.h" | 9 #include "components/browser_context_keyed_service/browser_context_keyed_service
_factory.h" |
10 | 10 |
| 11 class BrowserContextKeyedService; |
11 class Profile; | 12 class Profile; |
12 | 13 |
13 namespace chromeos { | 14 namespace chromeos { |
14 | 15 |
15 class OAuth2LoginManager; | 16 class OAuth2LoginManager; |
16 | 17 |
17 // Singleton that owns all OAuth2LoginManager and associates them with | 18 // Singleton that owns all OAuth2LoginManager 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 OAuth2LoginManager. | 20 // the associated OAuth2LoginManager. |
20 class OAuth2LoginManagerFactory | 21 class OAuth2LoginManagerFactory |
(...skipping 15 matching lines...) Expand all Loading... |
36 // BrowserContextKeyedServiceFactory implementation. | 37 // BrowserContextKeyedServiceFactory implementation. |
37 virtual BrowserContextKeyedService* BuildServiceInstanceFor( | 38 virtual BrowserContextKeyedService* BuildServiceInstanceFor( |
38 content::BrowserContext* context) const OVERRIDE; | 39 content::BrowserContext* context) const OVERRIDE; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManagerFactory); | 41 DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManagerFactory); |
41 }; | 42 }; |
42 | 43 |
43 } // namespace chromeos | 44 } // namespace chromeos |
44 | 45 |
45 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_ | 46 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_OAUTH2_LOGIN_MANAGER_FACTORY_H_ |
OLD | NEW |