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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_ui.h

Issue 317093002: Show confirmation dialog for unsecure signin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: filter http request from native code instead of JS Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/signin/inline_login_ui.h
diff --git a/chrome/browser/ui/webui/signin/inline_login_ui.h b/chrome/browser/ui/webui/signin/inline_login_ui.h
index 32a45c35979ff0167428cfaf3ee991449756f42e..3842fb70aace7233e480410839739da9b37185e7 100644
--- a/chrome/browser/ui/webui/signin/inline_login_ui.h
+++ b/chrome/browser/ui/webui/signin/inline_login_ui.h
@@ -8,6 +8,10 @@
#include "chrome/browser/extensions/signin/scoped_gaia_auth_extension.h"
#include "ui/web_dialogs/web_dialog_ui.h"
+namespace content {
+class RenderFrameHost;
+}
+
// Inline login WebUI in various signin flows for ChromeOS and Chrome desktop.
// The authentication is carried out via the host gaia_auth extension. Upon
// success, the profile of the webui should be populated with proper cookies.
@@ -17,6 +21,12 @@ class InlineLoginUI : public ui::WebDialogUI {
explicit InlineLoginUI(content::WebUI* web_ui);
virtual ~InlineLoginUI();
+ // Gets the iframe within a WebContents that has the specified parent origin
+ // if |parent_origin| is not NULL, and the specified parent frame name.
+ static content::RenderFrameHost* GetGaiaAuthIframe(
+ content::WebContents* web_contents,
+ const GURL* parent_origin,
+ const std::string& parent_frame_name);
private:
ScopedGaiaAuthExtension auth_extension_;

Powered by Google App Engine
This is Rietveld 408576698