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

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

Issue 8015004: webRequest.onAuthRequired listeners can provide authentication credentials. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle multiple blocking onAuthRequired Created 9 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 string16 password; // the password supplied to us for auth. 58 string16 password; // the password supplied to us for auth.
59 59
60 // We wouldn't instantiate this class if we didn't need authentication. 60 // We wouldn't instantiate this class if we didn't need authentication.
61 AuthData(); 61 AuthData();
62 62
63 private: 63 private:
64 friend class base::RefCountedThreadSafe<AuthData>; 64 friend class base::RefCountedThreadSafe<AuthData>;
65 ~AuthData(); 65 ~AuthData();
66 }; 66 };
67 67
68 class AuthCredentials {
69 public:
70 AuthCredentials();
71 ~AuthCredentials();
72
73 bool is_valid;
74 string16 username;
75 string16 password;
76 };
77
68 } // namespace net 78 } // namespace net
69 79
70 #endif // NET_BASE_AUTH_H__ 80 #endif // NET_BASE_AUTH_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698