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

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

Issue 2398153002: [net] Remove AuthData from net/base/auth.h. (Closed)
Patch Set: . Created 4 years, 2 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
« no previous file with comments | « no previous file | net/base/auth.cc » ('j') | net/url_request/url_request_ftp_job.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 }; 82 };
83 83
84 // Authentication structures 84 // Authentication structures
85 enum AuthState { 85 enum AuthState {
86 AUTH_STATE_DONT_NEED_AUTH, 86 AUTH_STATE_DONT_NEED_AUTH,
87 AUTH_STATE_NEED_AUTH, 87 AUTH_STATE_NEED_AUTH,
88 AUTH_STATE_HAVE_AUTH, 88 AUTH_STATE_HAVE_AUTH,
89 AUTH_STATE_CANCELED 89 AUTH_STATE_CANCELED
90 }; 90 };
91 91
92 class AuthData : public base::RefCountedThreadSafe<AuthData> {
93 public:
94 AuthState state; // whether we need, have, or gave up on authentication.
95 AuthCredentials credentials; // The credentials to use for auth.
96
97 // We wouldn't instantiate this class if we didn't need authentication.
98 AuthData();
99
100 private:
101 friend class base::RefCountedThreadSafe<AuthData>;
102 ~AuthData();
103 };
104
105 } // namespace net 92 } // namespace net
106 93
107 #endif // NET_BASE_AUTH_H__ 94 #endif // NET_BASE_AUTH_H__
OLDNEW
« no previous file with comments | « no previous file | net/base/auth.cc » ('j') | net/url_request/url_request_ftp_job.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698