Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_ui.h

Issue 1054403002: Basic tests for new webview based signin flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove flaky back-button check Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SIGNIN_INLINE_LOGIN_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_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 namespace content { 11 namespace content {
12 class RenderFrameHost; 12 class RenderFrameHost;
13 } 13 }
14 14
15 // Inline login WebUI in various signin flows for ChromeOS and Chrome desktop. 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 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. 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. 18 // Then this UI would fetch the oauth2 tokens using the cookies.
19 class InlineLoginUI : public ui::WebDialogUI { 19 class InlineLoginUI : public ui::WebDialogUI {
20 public: 20 public:
21 explicit InlineLoginUI(content::WebUI* web_ui); 21 explicit InlineLoginUI(content::WebUI* web_ui);
22 ~InlineLoginUI() override; 22 ~InlineLoginUI() override;
23 23
24 // Gets the iframe within an auth page that has the specified parent origin 24 // Gets the frame (iframe or webview) within an auth page that has the
25 // if |parent_origin| is not empty, and the specified parent frame name. 25 // specified parent origin if |parent_origin| is not empty, and the specified
26 static content::RenderFrameHost* GetAuthIframe( 26 // parent frame name.
27 static content::RenderFrameHost* GetAuthFrame(
27 content::WebContents* web_contents, 28 content::WebContents* web_contents,
28 const GURL& parent_origin, 29 const GURL& parent_origin,
29 const std::string& parent_frame_name); 30 const std::string& parent_frame_name);
30 private: 31 private:
31 ScopedGaiaAuthExtension auth_extension_; 32 ScopedGaiaAuthExtension auth_extension_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(InlineLoginUI); 34 DISALLOW_COPY_AND_ASSIGN(InlineLoginUI);
34 }; 35 };
35 36
36 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_ 37 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | chrome/browser/ui/webui/signin/inline_login_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698