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

Side by Side Diff: net/http/http_auth_handler_basic.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
7 7
8 #include "net/http/http_auth_handler.h" 8 #include "net/http/http_auth_handler.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 // Code for handling http basic authentication. 12 // Code for handling http basic authentication.
13 class HttpAuthHandlerBasic : public HttpAuthHandler { 13 class HttpAuthHandlerBasic : public HttpAuthHandler {
14 public: 14 public:
15 virtual std::string GenerateCredentials(const std::wstring& username, 15 virtual std::string GenerateCredentials(const std::wstring& username,
16 const std::wstring& password, 16 const std::wstring& password,
17 const HttpRequestInfo*, 17 const HttpRequestInfo*,
18 const ProxyInfo*); 18 const ProxyInfo*);
19 protected: 19 protected:
20 virtual bool Init(std::string::const_iterator challenge_begin, 20 virtual bool Init(std::string::const_iterator challenge_begin,
21 std::string::const_iterator challenge_end); 21 std::string::const_iterator challenge_end);
22 22
23 private:
24 ~HttpAuthHandlerBasic() {}
23 }; 25 };
24 26
25 } // namespace net 27 } // namespace net
26 28
27 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_ 29 #endif // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698