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_INLINE_LOGIN_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_INLINE_LOGIN_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h" | 8 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h" |
9 #include "ui/web_dialogs/web_dialog_ui.h" | 9 #include "ui/web_dialogs/web_dialog_ui.h" |
10 | 10 |
11 // Inline login WebUI in various signin flows for ChromeOS and Chrome desktop. | 11 // Inline login WebUI in various signin flows for ChromeOS and Chrome desktop. |
12 // The authentication is carried out via the host gaia_auth extension. Upon | 12 // The authentication is carried out via the host gaia_auth extension. Upon |
13 // success, the profile of the webui should be populated with proper cookies. | 13 // success, the profile of the webui should be populated with proper cookies. |
14 // Then this UI would fetch the oauth2 tokens using the cookies. | 14 // Then this UI would fetch the oauth2 tokens using the cookies. |
15 class InlineLoginUI : public ui::WebDialogUI { | 15 class InlineLoginUI : public ui::WebDialogUI { |
16 public: | 16 public: |
17 explicit InlineLoginUI(content::WebUI* web_ui); | 17 explicit InlineLoginUI(content::WebUI* web_ui); |
18 virtual ~InlineLoginUI(); | 18 virtual ~InlineLoginUI(); |
19 | 19 |
20 private: | 20 private: |
21 ScopedGaiaAuthExtension auth_extension_; | 21 ScopedGaiaAuthExtension auth_extension_; |
22 | 22 |
23 DISALLOW_COPY_AND_ASSIGN(InlineLoginUI); | 23 DISALLOW_COPY_AND_ASSIGN(InlineLoginUI); |
24 }; | 24 }; |
25 | 25 |
26 #endif // CHROME_BROWSER_UI_WEBUI_INLINE_LOGIN_UI_H_ | 26 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_ |
OLD | NEW |