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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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_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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/location_bar/location_bar_browsertest.cc ('k') | chrome/browser/ui/login/login_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698