- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / webui / inline_login_ui.h
1 // Copyright 2013 The Chromium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 #ifndef CHROME_BROWSER_UI_WEBUI_INLINE_LOGIN_UI_H_\r
6 #define CHROME_BROWSER_UI_WEBUI_INLINE_LOGIN_UI_H_\r
7 \r
8 #include "chrome/browser/extensions/scoped_gaia_auth_extension.h"\r
9 #include "ui/web_dialogs/web_dialog_ui.h"\r
10 \r
11 // Inline login WebUI in various signin flows for ChromeOS and Chrome desktop.\r
12 // The authentication is carried out via the host gaia_auth extension. Upon\r
13 // success, the profile of the webui should be populated with proper cookies.\r
14 // Then this UI would fetch the oauth2 tokens using the cookies.\r
15 class InlineLoginUI : public ui::WebDialogUI {\r
16  public:\r
17   explicit InlineLoginUI(content::WebUI* web_ui);\r
18   virtual ~InlineLoginUI();\r
19 \r
20  private:\r
21   ScopedGaiaAuthExtension auth_extension_;\r
22 \r
23   DISALLOW_COPY_AND_ASSIGN(InlineLoginUI);\r
24 };\r
25 \r
26 #endif  // CHROME_BROWSER_UI_WEBUI_INLINE_LOGIN_UI_H_\r