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_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ |
7 | 7 |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" | 9 #include "components/keyed_service/content/browser_context_keyed_service_factory
.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Returns an instance of the LoginUIServiceFactory singleton. | 24 // Returns an instance of the LoginUIServiceFactory singleton. |
25 static LoginUIServiceFactory* GetInstance(); | 25 static LoginUIServiceFactory* GetInstance(); |
26 | 26 |
27 // Helper method that returns a closure displaying the login popup for | 27 // Helper method that returns a closure displaying the login popup for |
28 // |profile|. | 28 // |profile|. |
29 // This closure must not be called after the LoginUIService is destroyed. | 29 // This closure must not be called after the LoginUIService is destroyed. |
30 static base::Closure GetShowLoginPopupCallbackForProfile(Profile* profile); | 30 static base::Closure GetShowLoginPopupCallbackForProfile(Profile* profile); |
31 | 31 |
32 private: | 32 private: |
33 friend struct DefaultSingletonTraits<LoginUIServiceFactory>; | 33 friend struct base::DefaultSingletonTraits<LoginUIServiceFactory>; |
34 | 34 |
35 LoginUIServiceFactory(); | 35 LoginUIServiceFactory(); |
36 ~LoginUIServiceFactory() override; | 36 ~LoginUIServiceFactory() override; |
37 | 37 |
38 // BrowserContextKeyedServiceFactory: | 38 // BrowserContextKeyedServiceFactory: |
39 KeyedService* BuildServiceInstanceFor( | 39 KeyedService* BuildServiceInstanceFor( |
40 content::BrowserContext* profile) const override; | 40 content::BrowserContext* profile) const override; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(LoginUIServiceFactory); | 42 DISALLOW_COPY_AND_ASSIGN(LoginUIServiceFactory); |
43 }; | 43 }; |
44 | 44 |
45 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ | 45 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ |
OLD | NEW |