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 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/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "net/base/net_api.h" |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 | 16 |
16 // Holds info about an authentication challenge that we may want to display | 17 // Holds info about an authentication challenge that we may want to display |
17 // to the user. | 18 // to the user. |
18 class AuthChallengeInfo : | 19 class NET_API AuthChallengeInfo : |
19 public base::RefCountedThreadSafe<AuthChallengeInfo> { | 20 public base::RefCountedThreadSafe<AuthChallengeInfo> { |
20 public: | 21 public: |
21 AuthChallengeInfo(); | 22 AuthChallengeInfo(); |
22 | 23 |
23 bool operator==(const AuthChallengeInfo& that) const; | 24 bool operator==(const AuthChallengeInfo& that) const; |
24 | 25 |
25 bool operator!=(const AuthChallengeInfo& that) const { | 26 bool operator!=(const AuthChallengeInfo& that) const { |
26 return !(*this == that); | 27 return !(*this == that); |
27 } | 28 } |
28 | 29 |
(...skipping 27 matching lines...) Expand all Loading... |
56 AuthData(); | 57 AuthData(); |
57 | 58 |
58 private: | 59 private: |
59 friend class base::RefCountedThreadSafe<AuthData>; | 60 friend class base::RefCountedThreadSafe<AuthData>; |
60 ~AuthData(); | 61 ~AuthData(); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace net | 64 } // namespace net |
64 | 65 |
65 #endif // NET_BASE_AUTH_H__ | 66 #endif // NET_BASE_AUTH_H__ |
OLD | NEW |