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

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

Issue 20134: Extend the IOBuffer to the disk cache. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include "net/base/completion_callback.h" 8 #include "net/base/completion_callback.h"
9 #include "net/base/load_states.h" 9 #include "net/base/load_states.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 class HttpRequestInfo; 13 class HttpRequestInfo;
14 class HttpResponseInfo; 14 class HttpResponseInfo;
15 class IOBuffer;
15 16
16 // Represents a single HTTP transaction (i.e., a single request/response pair). 17 // Represents a single HTTP transaction (i.e., a single request/response pair).
17 // HTTP redirects are not followed and authentication challenges are not 18 // HTTP redirects are not followed and authentication challenges are not
18 // answered. Cookies are assumed to be managed by the caller. 19 // answered. Cookies are assumed to be managed by the caller.
19 class HttpTransaction { 20 class HttpTransaction {
20 public: 21 public:
21 // Stops any pending IO and destroys the transaction object. 22 // Stops any pending IO and destroys the transaction object.
22 virtual ~HttpTransaction() {} 23 virtual ~HttpTransaction() {}
23 24
24 // Starts the HTTP transaction (i.e., sends the HTTP request). 25 // Starts the HTTP transaction (i.e., sends the HTTP request).
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 82
82 // Returns the upload progress in bytes. If there is no upload data, 83 // Returns the upload progress in bytes. If there is no upload data,
83 // zero will be returned. This does not include the request headers. 84 // zero will be returned. This does not include the request headers.
84 virtual uint64 GetUploadProgress() const = 0; 85 virtual uint64 GetUploadProgress() const = 0;
85 }; 86 };
86 87
87 } // namespace net 88 } // namespace net
88 89
89 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 90 #endif // NET_HTTP_HTTP_TRANSACTION_H_
90 91
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698