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

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

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/objc_zombie.mm ('k') | chrome/browser/ui/login/login_prompt.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/lock.h"
13 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "base/synchronization/lock.h"
14 #include "chrome/browser/password_manager/password_manager.h" 14 #include "chrome/browser/password_manager/password_manager.h"
15 #include "chrome/common/notification_observer.h" 15 #include "chrome/common/notification_observer.h"
16 #include "chrome/common/notification_registrar.h" 16 #include "chrome/common/notification_registrar.h"
17 17
18 namespace net { 18 namespace net {
19 class AuthChallengeInfo; 19 class AuthChallengeInfo;
20 class URLRequest; 20 class URLRequest;
21 } // namespace net 21 } // namespace net
22 22
23 class ConstrainedWindow; 23 class ConstrainedWindow;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const std::wstring& password); 110 const std::wstring& password);
111 111
112 // Calls CancelAuth from the IO loop. 112 // Calls CancelAuth from the IO loop.
113 void CancelAuthDeferred(); 113 void CancelAuthDeferred();
114 114
115 // Closes the view_contents from the UI loop. 115 // Closes the view_contents from the UI loop.
116 void CloseContentsDeferred(); 116 void CloseContentsDeferred();
117 117
118 // True if we've handled auth (SetAuth or CancelAuth has been called). 118 // True if we've handled auth (SetAuth or CancelAuth has been called).
119 bool handled_auth_; 119 bool handled_auth_;
120 mutable Lock handled_auth_lock_; 120 mutable base::Lock handled_auth_lock_;
121 121
122 // The ConstrainedWindow that is hosting our LoginView. 122 // The ConstrainedWindow that is hosting our LoginView.
123 // This should only be accessed on the UI loop. 123 // This should only be accessed on the UI loop.
124 ConstrainedWindow* dialog_; 124 ConstrainedWindow* dialog_;
125 125
126 // Who/where/what asked for the authentication. 126 // Who/where/what asked for the authentication.
127 scoped_refptr<net::AuthChallengeInfo> auth_info_; 127 scoped_refptr<net::AuthChallengeInfo> auth_info_;
128 128
129 // The request that wants login data. 129 // The request that wants login data.
130 // This should only be accessed on the IO loop. 130 // This should only be accessed on the IO loop.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // Helper to remove the ref from an net::URLRequest to the LoginHandler. 208 // Helper to remove the ref from an net::URLRequest to the LoginHandler.
209 // Should only be called from the IO thread, since it accesses an 209 // Should only be called from the IO thread, since it accesses an
210 // net::URLRequest. 210 // net::URLRequest.
211 void ResetLoginHandlerForRequest(net::URLRequest* request); 211 void ResetLoginHandlerForRequest(net::URLRequest* request);
212 212
213 // Get the signon_realm under which the identity should be saved. 213 // Get the signon_realm under which the identity should be saved.
214 std::string GetSignonRealm(const GURL& url, 214 std::string GetSignonRealm(const GURL& url,
215 const net::AuthChallengeInfo& auth_info); 215 const net::AuthChallengeInfo& auth_info);
216 216
217 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_ 217 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_PROMPT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/objc_zombie.mm ('k') | chrome/browser/ui/login/login_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698