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

Side by Side Diff: net/base/auth.h

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 NET_BASE_AUTH_H__ 5 #ifndef NET_BASE_AUTH_H__
6 #define NET_BASE_AUTH_H__ 6 #define NET_BASE_AUTH_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 // Holds info about an authentication challenge that we may want to display 16 // Holds info about an authentication challenge that we may want to display
17 // to the user. 17 // to the user.
18 class AuthChallengeInfo : 18 class AuthChallengeInfo :
19 public base::RefCountedThreadSafe<AuthChallengeInfo> { 19 public base::RefCountedThreadSafe<AuthChallengeInfo> {
20 public: 20 public:
21 AuthChallengeInfo(); 21 AuthChallengeInfo();
22 22
23 void Reset();
24
23 bool operator==(const AuthChallengeInfo& that) const; 25 bool operator==(const AuthChallengeInfo& that) const;
24 26
25 bool operator!=(const AuthChallengeInfo& that) const { 27 bool operator!=(const AuthChallengeInfo& that) const {
26 return !(*this == that); 28 return !(*this == that);
27 } 29 }
28 30
29 bool is_proxy; // true for Proxy-Authenticate, false for WWW-Authenticate. 31 bool is_proxy; // true for Proxy-Authenticate, false for WWW-Authenticate.
30 std::wstring host_and_port; // <host>:<port> of the server asking for auth 32 std::wstring host_and_port; // <host>:<port> of the server asking for auth
31 // (could be the proxy). 33 // (could be the proxy).
32 std::wstring scheme; // "Basic", "Digest", or whatever other method is used. 34 std::wstring scheme; // "Basic", "Digest", or whatever other method is used.
(...skipping 23 matching lines...) Expand all
56 AuthData(); 58 AuthData();
57 59
58 private: 60 private:
59 friend class base::RefCountedThreadSafe<AuthData>; 61 friend class base::RefCountedThreadSafe<AuthData>;
60 ~AuthData(); 62 ~AuthData();
61 }; 63 };
62 64
63 } // namespace net 65 } // namespace net
64 66
65 #endif // NET_BASE_AUTH_H__ 67 #endif // NET_BASE_AUTH_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698