OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTH_CHROME_LOGIN_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "chrome/browser/chromeos/policy/wildcard_login_checker.h" | 13 #include "chrome/browser/chromeos/policy/wildcard_login_checker.h" |
14 #include "chromeos/login/auth/auth_status_consumer.h" | 14 #include "chromeos/login/auth/auth_status_consumer.h" |
15 #include "chromeos/login/auth/authenticator.h" | 15 #include "chromeos/login/auth/authenticator.h" |
16 #include "chromeos/login/auth/extended_authenticator.h" | 16 #include "chromeos/login/auth/extended_authenticator.h" |
17 #include "chromeos/login/auth/login_performer.h" | 17 #include "chromeos/login/auth/login_performer.h" |
18 #include "chromeos/login/auth/user_context.h" | 18 #include "chromeos/login/auth/user_context.h" |
19 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
20 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
21 #include "google_apis/gaia/google_service_auth_error.h" | 21 #include "google_apis/gaia/google_service_auth_error.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 content::BrowserContext* GetSigninContext() override; | 63 content::BrowserContext* GetSigninContext() override; |
64 net::URLRequestContextGetter* GetSigninRequestContext() override; | 64 net::URLRequestContextGetter* GetSigninRequestContext() override; |
65 | 65 |
66 private: | 66 private: |
67 void OnlineWildcardLoginCheckCompleted( | 67 void OnlineWildcardLoginCheckCompleted( |
68 const base::Closure& success_callback, | 68 const base::Closure& success_callback, |
69 const base::Closure& failure_callback, | 69 const base::Closure& failure_callback, |
70 policy::WildcardLoginChecker::Result result); | 70 policy::WildcardLoginChecker::Result result); |
71 | 71 |
72 // Used to verify logins that matched wildcard on the login whitelist. | 72 // Used to verify logins that matched wildcard on the login whitelist. |
73 scoped_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; | 73 std::unique_ptr<policy::WildcardLoginChecker> wildcard_login_checker_; |
74 base::WeakPtrFactory<ChromeLoginPerformer> weak_factory_; | 74 base::WeakPtrFactory<ChromeLoginPerformer> weak_factory_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(ChromeLoginPerformer); | 76 DISALLOW_COPY_AND_ASSIGN(ChromeLoginPerformer); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace chromeos | 79 } // namespace chromeos |
80 | 80 |
81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_AUTH_CHROME_LOGIN_PERFORMER_H_ |
OLD | NEW |