| OLD | NEW |
| 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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 | 191 |
| 192 // Cached from the net::URLRequest, in case it goes NULL on us. | 192 // Cached from the net::URLRequest, in case it goes NULL on us. |
| 193 content::ResourceRequestInfo::WebContentsGetter web_contents_getter_; | 193 content::ResourceRequestInfo::WebContentsGetter web_contents_getter_; |
| 194 | 194 |
| 195 // If not null, points to a model we need to notify of our own destruction | 195 // If not null, points to a model we need to notify of our own destruction |
| 196 // so it doesn't try and access this when its too late. | 196 // so it doesn't try and access this when its too late. |
| 197 password_manager::LoginModel* login_model_; | 197 password_manager::LoginModel* login_model_; |
| 198 | 198 |
| 199 // Observes other login handlers so this login handler can respond. | 199 // Observes other login handlers so this login handler can respond. |
| 200 // This is only accessed on the UI thread. | 200 // This is only accessed on the UI thread. |
| 201 scoped_ptr<content::NotificationRegistrar> registrar_; | 201 std::unique_ptr<content::NotificationRegistrar> registrar_; |
| 202 | 202 |
| 203 base::WeakPtr<LoginInterstitialDelegate> interstitial_delegate_; | 203 base::WeakPtr<LoginInterstitialDelegate> interstitial_delegate_; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 // Details to provide the content::NotificationObserver. Used by the automation | 206 // Details to provide the content::NotificationObserver. Used by the automation |
| 207 // proxy for testing. | 207 // proxy for testing. |
| 208 class LoginNotificationDetails { | 208 class LoginNotificationDetails { |
| 209 public: | 209 public: |
| 210 explicit LoginNotificationDetails(LoginHandler* handler) | 210 explicit LoginNotificationDetails(LoginHandler* handler) |
| 211 : handler_(handler) {} | 211 : handler_(handler) {} |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // caller must invoke OnRequestCancelled() on this LoginHandler before | 253 // caller must invoke OnRequestCancelled() on this LoginHandler before |
| 254 // destroying the net::URLRequest. | 254 // destroying the net::URLRequest. |
| 255 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, | 255 LoginHandler* CreateLoginPrompt(net::AuthChallengeInfo* auth_info, |
| 256 net::URLRequest* request); | 256 net::URLRequest* request); |
| 257 | 257 |
| 258 // Get the signon_realm under which the identity should be saved. | 258 // Get the signon_realm under which the identity should be saved. |
| 259 std::string GetSignonRealm(const GURL& url, | 259 std::string GetSignonRealm(const GURL& url, |
| 260 const net::AuthChallengeInfo& auth_info); | 260 const net::AuthChallengeInfo& auth_info); |
| 261 | 261 |
| 262 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ | 262 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_H_ |
| OLD | NEW |