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

Side by Side Diff: chrome/browser/ui/login/login_prompt.h

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOGIN_LOGIN_PROMPT_H_ 5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_
6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_ 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const base::string16& explanation) = 0; 49 const base::string16& explanation) = 0;
50 50
51 // Sets information about the authentication type (|form|) and the 51 // Sets information about the authentication type (|form|) and the
52 // |password_manager| for this profile. 52 // |password_manager| for this profile.
53 void SetPasswordForm(const autofill::PasswordForm& form); 53 void SetPasswordForm(const autofill::PasswordForm& form);
54 void SetPasswordManager(password_manager::PasswordManager* password_manager); 54 void SetPasswordManager(password_manager::PasswordManager* password_manager);
55 55
56 // Returns the WebContents that needs authentication. 56 // Returns the WebContents that needs authentication.
57 content::WebContents* GetWebContentsForLogin() const; 57 content::WebContents* GetWebContentsForLogin() const;
58 58
59 // Returns the PasswordManager for the render frame that needs login.
60 password_manager::PasswordManager* GetPasswordManagerForLogin();
61
59 // Resend the request with authentication credentials. 62 // Resend the request with authentication credentials.
60 // This function can be called from either thread. 63 // This function can be called from either thread.
61 void SetAuth(const base::string16& username, const base::string16& password); 64 void SetAuth(const base::string16& username, const base::string16& password);
62 65
63 // Display the error page without asking for credentials again. 66 // Display the error page without asking for credentials again.
64 // This function can be called from either thread. 67 // This function can be called from either thread.
65 void CancelAuth(); 68 void CancelAuth();
66 69
67 // Implements the content::NotificationObserver interface. 70 // Implements the content::NotificationObserver interface.
68 // Listens for AUTH_SUPPLIED and AUTH_CANCELLED notifications from other 71 // Listens for AUTH_SUPPLIED and AUTH_CANCELLED notifications from other
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Helper to remove the ref from an net::URLRequest to the LoginHandler. 215 // Helper to remove the ref from an net::URLRequest to the LoginHandler.
213 // Should only be called from the IO thread, since it accesses an 216 // Should only be called from the IO thread, since it accesses an
214 // net::URLRequest. 217 // net::URLRequest.
215 void ResetLoginHandlerForRequest(net::URLRequest* request); 218 void ResetLoginHandlerForRequest(net::URLRequest* request);
216 219
217 // Get the signon_realm under which the identity should be saved. 220 // Get the signon_realm under which the identity should be saved.
218 std::string GetSignonRealm(const GURL& url, 221 std::string GetSignonRealm(const GURL& url,
219 const net::AuthChallengeInfo& auth_info); 222 const net::AuthChallengeInfo& auth_info);
220 223
221 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_ 224 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698