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

Side by Side Diff: net/http/http_network_transaction.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/http/http_cache_transaction.cc ('k') | net/http/http_network_transaction.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) 2010 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_HTTP_HTTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
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 "net/base/address_list.h" 16 #include "net/base/address_list.h"
16 #include "net/base/io_buffer.h" 17 #include "net/base/io_buffer.h"
17 #include "net/base/load_flags.h" 18 #include "net/base/load_flags.h"
18 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
19 #include "net/base/net_log.h" 20 #include "net/base/net_log.h"
20 #include "net/base/ssl_config_service.h" 21 #include "net/base/ssl_config_service.h"
21 #include "net/http/http_alternate_protocols.h" 22 #include "net/http/http_alternate_protocols.h"
22 #include "net/http/http_auth.h" 23 #include "net/http/http_auth.h"
23 #include "net/http/http_auth_controller.h" 24 #include "net/http/http_auth_controller.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // certificate errors. This is for testing. 62 // certificate errors. This is for testing.
62 static void IgnoreCertificateErrors(bool enabled); 63 static void IgnoreCertificateErrors(bool enabled);
63 64
64 // HttpTransaction methods: 65 // HttpTransaction methods:
65 virtual int Start(const HttpRequestInfo* request_info, 66 virtual int Start(const HttpRequestInfo* request_info,
66 CompletionCallback* callback, 67 CompletionCallback* callback,
67 const BoundNetLog& net_log); 68 const BoundNetLog& net_log);
68 virtual int RestartIgnoringLastError(CompletionCallback* callback); 69 virtual int RestartIgnoringLastError(CompletionCallback* callback);
69 virtual int RestartWithCertificate(X509Certificate* client_cert, 70 virtual int RestartWithCertificate(X509Certificate* client_cert,
70 CompletionCallback* callback); 71 CompletionCallback* callback);
71 virtual int RestartWithAuth(const std::wstring& username, 72 virtual int RestartWithAuth(const string16& username,
72 const std::wstring& password, 73 const string16& password,
73 CompletionCallback* callback); 74 CompletionCallback* callback);
74 virtual bool IsReadyToRestartForAuth() { 75 virtual bool IsReadyToRestartForAuth() {
75 return pending_auth_target_ != HttpAuth::AUTH_NONE && 76 return pending_auth_target_ != HttpAuth::AUTH_NONE &&
76 HaveAuth(pending_auth_target_); 77 HaveAuth(pending_auth_target_);
77 } 78 }
78 79
79 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 80 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
80 virtual void StopCaching() {} 81 virtual void StopCaching() {}
81 virtual const HttpResponseInfo* GetResponseInfo() const; 82 virtual const HttpResponseInfo* GetResponseInfo() const;
82 virtual LoadState GetLoadState() const; 83 virtual LoadState GetLoadState() const;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // True when the tunnel is in the process of being established - we can't 329 // True when the tunnel is in the process of being established - we can't
329 // read from the socket until the tunnel is done. 330 // read from the socket until the tunnel is done.
330 bool establishing_tunnel_; 331 bool establishing_tunnel_;
331 332
332 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 333 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
333 }; 334 };
334 335
335 } // namespace net 336 } // namespace net
336 337
337 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 338 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698