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_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "chrome/browser/ui/webui/signin/inline_login_handler.h" | 11 #include "chrome/browser/ui/webui/signin/inline_login_handler.h" |
11 | 12 |
12 namespace chromeos { | 13 namespace chromeos { |
13 | 14 |
14 class OAuth2TokenFetcher; | 15 class OAuth2TokenFetcher; |
15 | 16 |
16 // Implementation for the inline login WebUI handler on ChromeOS. | 17 // Implementation for the inline login WebUI handler on ChromeOS. |
17 class InlineLoginHandlerChromeOS : public ::InlineLoginHandler { | 18 class InlineLoginHandlerChromeOS : public ::InlineLoginHandler { |
18 public: | 19 public: |
19 InlineLoginHandlerChromeOS(); | 20 InlineLoginHandlerChromeOS(); |
20 ~InlineLoginHandlerChromeOS() override; | 21 ~InlineLoginHandlerChromeOS() override; |
21 | 22 |
22 private: | 23 private: |
23 class InlineLoginUIOAuth2Delegate; | 24 class InlineLoginUIOAuth2Delegate; |
24 | 25 |
25 // InlineLoginHandler overrides: | 26 // InlineLoginHandler overrides: |
26 void CompleteLogin(const base::ListValue* args) override; | 27 void CompleteLogin(const base::ListValue* args) override; |
27 | 28 |
28 scoped_ptr<InlineLoginUIOAuth2Delegate> oauth2_delegate_; | 29 std::unique_ptr<InlineLoginUIOAuth2Delegate> oauth2_delegate_; |
29 scoped_ptr<chromeos::OAuth2TokenFetcher> oauth2_token_fetcher_; | 30 std::unique_ptr<chromeos::OAuth2TokenFetcher> oauth2_token_fetcher_; |
30 | 31 |
31 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerChromeOS); | 32 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandlerChromeOS); |
32 }; | 33 }; |
33 | 34 |
34 } // namespace chromeos | 35 } // namespace chromeos |
35 | 36 |
36 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_
H_ | 37 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_INLINE_LOGIN_HANDLER_CHROMEOS_
H_ |
OLD | NEW |