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

Side by Side Diff: net/url_request/url_request_job.h

Issue 3040016: Net: Convert username and password to string16. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address comments Created 10 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
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_URL_REQUEST_URL_REQUEST_JOB_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_JOB_H_
6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_JOB_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/ref_counted.h" 12 #include "base/ref_counted.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/string16.h"
14 #include "base/time.h" 15 #include "base/time.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 #include "net/base/filter.h" 17 #include "net/base/filter.h"
17 #include "net/base/load_states.h" 18 #include "net/base/load_states.h"
18 19
19 namespace net { 20 namespace net {
20 class AuthChallengeInfo; 21 class AuthChallengeInfo;
21 class HttpRequestHeaders; 22 class HttpRequestHeaders;
22 class HttpResponseInfo; 23 class HttpResponseInfo;
23 class IOBuffer; 24 class IOBuffer;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Called to determine if this response is asking for authentication. Only 165 // Called to determine if this response is asking for authentication. Only
165 // makes sense for some types of requests. The caller is responsible for 166 // makes sense for some types of requests. The caller is responsible for
166 // obtaining the credentials passing them to SetAuth. 167 // obtaining the credentials passing them to SetAuth.
167 virtual bool NeedsAuth(); 168 virtual bool NeedsAuth();
168 169
169 // Fills the authentication info with the server's response. 170 // Fills the authentication info with the server's response.
170 virtual void GetAuthChallengeInfo( 171 virtual void GetAuthChallengeInfo(
171 scoped_refptr<net::AuthChallengeInfo>* auth_info); 172 scoped_refptr<net::AuthChallengeInfo>* auth_info);
172 173
173 // Resend the request with authentication credentials. 174 // Resend the request with authentication credentials.
174 virtual void SetAuth(const std::wstring& username, 175 virtual void SetAuth(const string16& username,
175 const std::wstring& password); 176 const string16& password);
176 177
177 // Display the error page without asking for credentials again. 178 // Display the error page without asking for credentials again.
178 virtual void CancelAuth(); 179 virtual void CancelAuth();
179 180
180 virtual void ContinueWithCertificate(net::X509Certificate* client_cert); 181 virtual void ContinueWithCertificate(net::X509Certificate* client_cert);
181 182
182 // Continue processing the request ignoring the last error. 183 // Continue processing the request ignoring the last error.
183 virtual void ContinueDespiteLastError(); 184 virtual void ContinueDespiteLastError();
184 185
185 void FollowDeferredRedirect(); 186 void FollowDeferredRedirect();
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 base::Time final_packet_time_; 403 base::Time final_packet_time_;
403 404
404 // The count of the number of packets, some of which may not have been timed. 405 // The count of the number of packets, some of which may not have been timed.
405 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes. 406 // We're ignoring overflow, as 1430 x 2^31 is a LOT of bytes.
406 int observed_packet_count_; 407 int observed_packet_count_;
407 408
408 DISALLOW_COPY_AND_ASSIGN(URLRequestJob); 409 DISALLOW_COPY_AND_ASSIGN(URLRequestJob);
409 }; 410 };
410 411
411 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_ 412 #endif // NET_URL_REQUEST_URL_REQUEST_JOB_H_
OLDNEW
« no previous file with comments | « net/url_request/url_request_http_job.cc ('k') | net/url_request/url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698