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

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

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 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
« no previous file with comments | « net/http/http_auth_handler_mock.h ('k') | net/http/http_auth_handler_ntlm.h » ('j') | no next file with comments »
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_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ 5 #ifndef NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_
6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ 6 #define NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void set_use_port(bool use_port) { use_port_ = use_port; } 63 void set_use_port(bool use_port) { use_port_ = use_port; }
64 64
65 void set_host_resolver(HostResolver* host_resolver); 65 void set_host_resolver(HostResolver* host_resolver);
66 66
67 // Sets the system library to use, thereby assuming ownership of 67 // Sets the system library to use, thereby assuming ownership of
68 // |auth_library|. 68 // |auth_library|.
69 void set_library(AuthLibrary* auth_library) { 69 void set_library(AuthLibrary* auth_library) {
70 auth_library_.reset(auth_library); 70 auth_library_.reset(auth_library);
71 } 71 }
72 72
73 virtual int CreateAuthHandler(HttpAuth::ChallengeTokenizer* challenge, 73 virtual int CreateAuthHandler(
74 HttpAuth::Target target, 74 HttpAuth::ChallengeTokenizer* challenge,
75 const GURL& origin, 75 HttpAuth::Target target,
76 CreateReason reason, 76 const GURL& origin,
77 int digest_nonce_count, 77 CreateReason reason,
78 const BoundNetLog& net_log, 78 int digest_nonce_count,
79 scoped_ptr<HttpAuthHandler>* handler); 79 const BoundNetLog& net_log,
80 scoped_ptr<HttpAuthHandler>* handler) OVERRIDE;
80 81
81 private: 82 private:
82 bool disable_cname_lookup_; 83 bool disable_cname_lookup_;
83 bool use_port_; 84 bool use_port_;
84 HostResolver* resolver_; 85 HostResolver* resolver_;
85 #if defined(OS_WIN) 86 #if defined(OS_WIN)
86 ULONG max_token_length_; 87 ULONG max_token_length_;
87 bool first_creation_; 88 bool first_creation_;
88 #endif 89 #endif
89 bool is_unsupported_; 90 bool is_unsupported_;
(...skipping 16 matching lines...) Expand all
106 const std::wstring& spn() const { return spn_; } 107 const std::wstring& spn() const { return spn_; }
107 108
108 // HttpAuthHandler: 109 // HttpAuthHandler:
109 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge( 110 virtual HttpAuth::AuthorizationResult HandleAnotherChallenge(
110 HttpAuth::ChallengeTokenizer* challenge) OVERRIDE; 111 HttpAuth::ChallengeTokenizer* challenge) OVERRIDE;
111 virtual bool NeedsIdentity() OVERRIDE; 112 virtual bool NeedsIdentity() OVERRIDE;
112 virtual bool AllowsDefaultCredentials() OVERRIDE; 113 virtual bool AllowsDefaultCredentials() OVERRIDE;
113 virtual bool AllowsExplicitCredentials() OVERRIDE; 114 virtual bool AllowsExplicitCredentials() OVERRIDE;
114 115
115 protected: 116 protected:
116 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge); 117 virtual bool Init(HttpAuth::ChallengeTokenizer* challenge) OVERRIDE;
117 118
118 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials, 119 virtual int GenerateAuthTokenImpl(const AuthCredentials* credentials,
119 const HttpRequestInfo* request, 120 const HttpRequestInfo* request,
120 OldCompletionCallback* callback, 121 OldCompletionCallback* callback,
121 std::string* auth_token); 122 std::string* auth_token) OVERRIDE;
122 123
123 private: 124 private:
124 enum State { 125 enum State {
125 STATE_RESOLVE_CANONICAL_NAME, 126 STATE_RESOLVE_CANONICAL_NAME,
126 STATE_RESOLVE_CANONICAL_NAME_COMPLETE, 127 STATE_RESOLVE_CANONICAL_NAME_COMPLETE,
127 STATE_GENERATE_AUTH_TOKEN, 128 STATE_GENERATE_AUTH_TOKEN,
128 STATE_GENERATE_AUTH_TOKEN_COMPLETE, 129 STATE_GENERATE_AUTH_TOKEN_COMPLETE,
129 STATE_NONE, 130 STATE_NONE,
130 }; 131 };
131 132
(...skipping 28 matching lines...) Expand all
160 std::string* auth_token_; 161 std::string* auth_token_;
161 162
162 State next_state_; 163 State next_state_;
163 164
164 const URLSecurityManager* url_security_manager_; 165 const URLSecurityManager* url_security_manager_;
165 }; 166 };
166 167
167 } // namespace net 168 } // namespace net
168 169
169 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_ 170 #endif // NET_HTTP_HTTP_AUTH_HANDLER_NEGOTIATE_H_
OLDNEW
« no previous file with comments | « net/http/http_auth_handler_mock.h ('k') | net/http/http_auth_handler_ntlm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698