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

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

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: mac compile fix 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
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_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
(...skipping 29 matching lines...) Expand all
40 40
41 virtual ~HttpNetworkTransaction(); 41 virtual ~HttpNetworkTransaction();
42 42
43 // HttpTransaction methods: 43 // HttpTransaction methods:
44 virtual int Start(const HttpRequestInfo* request_info, 44 virtual int Start(const HttpRequestInfo* request_info,
45 OldCompletionCallback* callback, 45 OldCompletionCallback* callback,
46 const BoundNetLog& net_log); 46 const BoundNetLog& net_log);
47 virtual int RestartIgnoringLastError(OldCompletionCallback* callback); 47 virtual int RestartIgnoringLastError(OldCompletionCallback* callback);
48 virtual int RestartWithCertificate(X509Certificate* client_cert, 48 virtual int RestartWithCertificate(X509Certificate* client_cert,
49 OldCompletionCallback* callback); 49 OldCompletionCallback* callback);
50 virtual int RestartWithAuth(const string16& username, 50 virtual int RestartWithAuth(const AuthCredentials& credentials,
51 const string16& password, 51 OldCompletionCallback* callback) OVERRIDE;
52 OldCompletionCallback* callback);
53 virtual bool IsReadyToRestartForAuth(); 52 virtual bool IsReadyToRestartForAuth();
54 53
55 virtual int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* callback); 54 virtual int Read(IOBuffer* buf, int buf_len, OldCompletionCallback* callback);
56 virtual void StopCaching() {} 55 virtual void StopCaching() {}
57 virtual void DoneReading() {} 56 virtual void DoneReading() {}
58 virtual const HttpResponseInfo* GetResponseInfo() const; 57 virtual const HttpResponseInfo* GetResponseInfo() const;
59 virtual LoadState GetLoadState() const; 58 virtual LoadState GetLoadState() const;
60 virtual uint64 GetUploadProgress() const; 59 virtual uint64 GetUploadProgress() const;
61 60
62 // HttpStreamRequest::Delegate methods: 61 // HttpStreamRequest::Delegate methods:
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // True when the tunnel is in the process of being established - we can't 270 // True when the tunnel is in the process of being established - we can't
272 // read from the socket until the tunnel is done. 271 // read from the socket until the tunnel is done.
273 bool establishing_tunnel_; 272 bool establishing_tunnel_;
274 273
275 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 274 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
276 }; 275 };
277 276
278 } // namespace net 277 } // namespace net
279 278
280 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 279 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698