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