Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / webui / signin / inline_login_ui.h
blobd4c4408253d8712a68d4ad853c9521d81f324f4a
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_
8 #include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h"
9 #include "ui/web_dialogs/web_dialog_ui.h"
11 namespace content {
12 class RenderFrameHost;
15 // Inline login WebUI in various signin flows for ChromeOS and Chrome desktop.
16 // The authentication is carried out via the host gaia_auth extension. Upon
17 // success, the profile of the webui should be populated with proper cookies.
18 // Then this UI would fetch the oauth2 tokens using the cookies.
19 class InlineLoginUI : public ui::WebDialogUI {
20 public:
21 explicit InlineLoginUI(content::WebUI* web_ui);
22 ~InlineLoginUI() override;
24 // Gets the iframe within an auth page that has the specified parent origin
25 // if |parent_origin| is not empty, and the specified parent frame name.
26 static content::RenderFrameHost* GetAuthIframe(
27 content::WebContents* web_contents,
28 const GURL& parent_origin,
29 const std::string& parent_frame_name);
30 private:
31 ScopedGaiaAuthExtension auth_extension_;
33 DISALLOW_COPY_AND_ASSIGN(InlineLoginUI);
36 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_