Home | History | Annotate | Download | only in http
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
      6 #define NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
      7 
      8 #include "net/http/http_auth_handler.h"
      9 
     10 namespace net {
     11 
     12 // Code for handling http basic authentication.
     13 class HttpAuthHandlerBasic : public HttpAuthHandler {
     14  public:
     15   virtual std::string GenerateCredentials(const std::wstring& username,
     16                                           const std::wstring& password,
     17                                           const HttpRequestInfo*,
     18                                           const ProxyInfo*);
     19  protected:
     20   virtual bool Init(std::string::const_iterator challenge_begin,
     21                     std::string::const_iterator challenge_end);
     22 
     23  private:
     24   ~HttpAuthHandlerBasic() {}
     25 };
     26 
     27 }  // namespace net
     28 
     29 #endif  // NET_HTTP_HTTP_AUTH_HANDLER_BASIC_H_
     30