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

Side by Side Diff: net/http/http_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_network_transaction_unittest.cc ('k') | net/http/http_transaction_unittest.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) 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_HTTP_HTTP_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_
6 #define NET_HTTP_HTTP_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include "base/string16.h"
10
11 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
12 #include "net/base/load_states.h" 11 #include "net/base/load_states.h"
13 12
14 namespace net { 13 namespace net {
15 14
16 class BoundNetLog; 15 class BoundNetLog;
17 struct HttpRequestInfo; 16 struct HttpRequestInfo;
18 class HttpResponseInfo; 17 class HttpResponseInfo;
19 class IOBuffer; 18 class IOBuffer;
20 class X509Certificate; 19 class X509Certificate;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // 54 //
56 // NOTE: The transaction is not responsible for deleting the callback object. 55 // NOTE: The transaction is not responsible for deleting the callback object.
57 // 56 //
58 virtual int RestartIgnoringLastError(CompletionCallback* callback) = 0; 57 virtual int RestartIgnoringLastError(CompletionCallback* callback) = 0;
59 58
60 // Restarts the HTTP transaction with a client certificate. 59 // Restarts the HTTP transaction with a client certificate.
61 virtual int RestartWithCertificate(X509Certificate* client_cert, 60 virtual int RestartWithCertificate(X509Certificate* client_cert,
62 CompletionCallback* callback) = 0; 61 CompletionCallback* callback) = 0;
63 62
64 // Restarts the HTTP transaction with authentication credentials. 63 // Restarts the HTTP transaction with authentication credentials.
65 virtual int RestartWithAuth(const std::wstring& username, 64 virtual int RestartWithAuth(const string16& username,
66 const std::wstring& password, 65 const string16& password,
67 CompletionCallback* callback) = 0; 66 CompletionCallback* callback) = 0;
68 67
69 // Returns true if auth is ready to be continued. Callers should check 68 // Returns true if auth is ready to be continued. Callers should check
70 // this value anytime Start() completes: if it is true, the transaction 69 // this value anytime Start() completes: if it is true, the transaction
71 // can be resumed with RestartWithAuth(L"", L"", callback) to resume 70 // can be resumed with RestartWithAuth(L"", L"", callback) to resume
72 // the automatic auth exchange. This notification gives the caller a 71 // the automatic auth exchange. This notification gives the caller a
73 // chance to process the response headers from all of the intermediate 72 // chance to process the response headers from all of the intermediate
74 // restarts needed for authentication. 73 // restarts needed for authentication.
75 virtual bool IsReadyToRestartForAuth() = 0; 74 virtual bool IsReadyToRestartForAuth() = 0;
76 75
(...skipping 26 matching lines...) Expand all
103 virtual LoadState GetLoadState() const = 0; 102 virtual LoadState GetLoadState() const = 0;
104 103
105 // Returns the upload progress in bytes. If there is no upload data, 104 // Returns the upload progress in bytes. If there is no upload data,
106 // zero will be returned. This does not include the request headers. 105 // zero will be returned. This does not include the request headers.
107 virtual uint64 GetUploadProgress() const = 0; 106 virtual uint64 GetUploadProgress() const = 0;
108 }; 107 };
109 108
110 } // namespace net 109 } // namespace net
111 110
112 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 111 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698