OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // ResourceDispatcherHostLoginDelegate implementation: | 43 // ResourceDispatcherHostLoginDelegate implementation: |
44 virtual void OnRequestCancelled() OVERRIDE; | 44 virtual void OnRequestCancelled() OVERRIDE; |
45 | 45 |
46 // Initializes the underlying platform specific view. | 46 // Initializes the underlying platform specific view. |
47 virtual void BuildViewForPasswordManager(PasswordManager* manager, | 47 virtual void BuildViewForPasswordManager(PasswordManager* manager, |
48 const string16& explanation) = 0; | 48 const string16& explanation) = 0; |
49 | 49 |
50 // Sets information about the authentication type (|form|) and the | 50 // Sets information about the authentication type (|form|) and the |
51 // |password_manager| for this profile. | 51 // |password_manager| for this profile. |
52 void SetPasswordForm(const webkit_glue::PasswordForm& form); | 52 void SetPasswordForm(const webkit::forms::PasswordForm& form); |
53 void SetPasswordManager(PasswordManager* password_manager); | 53 void SetPasswordManager(PasswordManager* password_manager); |
54 | 54 |
55 // Returns the TabContents that needs authentication. | 55 // Returns the TabContents that needs authentication. |
56 TabContents* GetTabContentsForLogin() const; | 56 TabContents* GetTabContentsForLogin() const; |
57 | 57 |
58 // Returns the RenderViewHostDelegate for the page that needs authentication. | 58 // Returns the RenderViewHostDelegate for the page that needs authentication. |
59 RenderViewHostDelegate* GetRenderViewHostDelegate() const; | 59 RenderViewHostDelegate* GetRenderViewHostDelegate() const; |
60 | 60 |
61 // Resend the request with authentication credentials. | 61 // Resend the request with authentication credentials. |
62 // This function can be called from either thread. | 62 // This function can be called from either thread. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_glue::PasswordForm password_form_; | 144 webkit::forms::PasswordForm password_form_; |
145 | 145 |
146 // Points to the password manager owned by the TabContents requesting auth. | 146 // Points to the password manager owned by the TabContents requesting auth. |
147 // Can be null if the TabContents is not a TabContents. | 147 // Can be null if the TabContents is not a TabContents. |
148 // This should only be accessed on the UI loop. | 148 // This should only be accessed on the UI loop. |
149 PasswordManager* password_manager_; | 149 PasswordManager* password_manager_; |
150 | 150 |
151 // Cached from the net::URLRequest, in case it goes NULL on us. | 151 // Cached from the net::URLRequest, in case it goes NULL on us. |
152 int render_process_host_id_; | 152 int render_process_host_id_; |
153 int tab_contents_id_; | 153 int tab_contents_id_; |
154 | 154 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |