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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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_HTTP_HTTP_AUTH_HANDLER_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "net/base/completion_callback.h" 12 #include "net/base/completion_callback.h"
13 #include "net/base/net_api.h" 13 #include "net/base/net_export.h"
14 #include "net/base/net_log.h" 14 #include "net/base/net_log.h"
15 #include "net/http/http_auth.h" 15 #include "net/http/http_auth.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 struct HttpRequestInfo; 19 struct HttpRequestInfo;
20 20
21 // HttpAuthHandler is the interface for the authentication schemes 21 // HttpAuthHandler is the interface for the authentication schemes
22 // (basic, digest, NTLM, Negotiate). 22 // (basic, digest, NTLM, Negotiate).
23 // HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory. 23 // HttpAuthHandler objects are typically created by an HttpAuthHandlerFactory.
24 class NET_TEST HttpAuthHandler { 24 class NET_EXPORT_PRIVATE HttpAuthHandler {
25 public: 25 public:
26 HttpAuthHandler(); 26 HttpAuthHandler();
27 virtual ~HttpAuthHandler(); 27 virtual ~HttpAuthHandler();
28 28
29 // Initializes the handler using a challenge issued by a server. 29 // Initializes the handler using a challenge issued by a server.
30 // |challenge| must be non-NULL and have already tokenized the 30 // |challenge| must be non-NULL and have already tokenized the
31 // authentication scheme, but none of the tokens occuring after the 31 // authentication scheme, but none of the tokens occuring after the
32 // authentication scheme. |target| and |origin| are both stored 32 // authentication scheme. |target| and |origin| are both stored
33 // for later use, and are not part of the initial challenge. 33 // for later use, and are not part of the initial challenge.
34 bool InitFromChallenge(HttpAuth::ChallengeTokenizer* challenge, 34 bool InitFromChallenge(HttpAuth::ChallengeTokenizer* challenge,
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 void OnGenerateAuthTokenComplete(int rv); 187 void OnGenerateAuthTokenComplete(int rv);
188 void FinishGenerateAuthToken(); 188 void FinishGenerateAuthToken();
189 189
190 CompletionCallback* original_callback_; 190 CompletionCallback* original_callback_;
191 CompletionCallbackImpl<HttpAuthHandler> wrapper_callback_; 191 CompletionCallbackImpl<HttpAuthHandler> wrapper_callback_;
192 }; 192 };
193 193
194 } // namespace net 194 } // namespace net
195 195
196 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_ 196 #endif // NET_HTTP_HTTP_AUTH_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698