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_; |