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

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

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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 (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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // ResourceDispatcherHostLoginDelegate implementation: 44 // ResourceDispatcherHostLoginDelegate implementation:
45 virtual void OnRequestCancelled() OVERRIDE; 45 virtual void OnRequestCancelled() OVERRIDE;
46 46
47 // Initializes the underlying platform specific view. 47 // Initializes the underlying platform specific view.
48 virtual void BuildViewForPasswordManager(PasswordManager* manager, 48 virtual void BuildViewForPasswordManager(PasswordManager* manager,
49 const string16& explanation) = 0; 49 const 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 webkit::forms::PasswordForm& form); 53 void SetPasswordForm(const content::PasswordForm& form);
54 void SetPasswordManager(PasswordManager* password_manager); 54 void SetPasswordManager(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 // Resend the request with authentication credentials. 59 // Resend the request with authentication credentials.
60 // This function can be called from either thread. 60 // This function can be called from either thread.
61 void SetAuth(const string16& username, const string16& password); 61 void SetAuth(const string16& username, const string16& password);
62 62
63 // Display the error page without asking for credentials again. 63 // Display the error page without asking for credentials again.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // This should only be accessed on the IO loop. 134 // This should only be accessed on the IO loop.
135 net::URLRequest* request_; 135 net::URLRequest* request_;
136 136
137 // The HttpNetworkSession |request_| is associated with. 137 // The HttpNetworkSession |request_| is associated with.
138 const net::HttpNetworkSession* http_network_session_; 138 const net::HttpNetworkSession* http_network_session_;
139 139
140 // The PasswordForm sent to the PasswordManager. This is so we can refer to it 140 // The PasswordForm sent to the PasswordManager. This is so we can refer to it
141 // when later notifying the password manager if the credentials were accepted 141 // when later notifying the password manager if the credentials were accepted
142 // or rejected. 142 // or rejected.
143 // This should only be accessed on the UI loop. 143 // This should only be accessed on the UI loop.
144 webkit::forms::PasswordForm password_form_; 144 content::PasswordForm password_form_;
145 145
146 // Points to the password manager owned by the WebContents requesting auth. 146 // Points to the password manager owned by the WebContents requesting auth.
147 // This should only be accessed on the UI loop. 147 // This should only be accessed on the UI loop.
148 PasswordManager* password_manager_; 148 PasswordManager* password_manager_;
149 149
150 // Cached from the net::URLRequest, in case it goes NULL on us. 150 // Cached from the net::URLRequest, in case it goes NULL on us.
151 int render_process_host_id_; 151 int render_process_host_id_;
152 int tab_contents_id_; 152 int tab_contents_id_;
153 153
154 // If not null, points to a model we need to notify of our own destruction 154 // If not null, points to a model we need to notify of our own destruction
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // 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.
216 // 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
217 // net::URLRequest. 217 // net::URLRequest.
218 void ResetLoginHandlerForRequest(net::URLRequest* request); 218 void ResetLoginHandlerForRequest(net::URLRequest* request);
219 219
220 // Get the signon_realm under which the identity should be saved. 220 // Get the signon_realm under which the identity should be saved.
221 std::string GetSignonRealm(const GURL& url, 221 std::string GetSignonRealm(const GURL& url,
222 const net::AuthChallengeInfo& auth_info); 222 const net::AuthChallengeInfo& auth_info);
223 223
224 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_ 224 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/password_generation_bubble_gtk.cc ('k') | chrome/browser/ui/login/login_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698