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

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

Issue 1072423005: Set network_accessed earlier, when network transaction creates stream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't break build on iOS Created 5 years, 7 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
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_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 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Called to tell the transaction that we have successfully reached the end 127 // Called to tell the transaction that we have successfully reached the end
128 // of the stream. This is equivalent to performing an extra Read() at the end 128 // of the stream. This is equivalent to performing an extra Read() at the end
129 // that should return 0 bytes. This method should not be called if the 129 // that should return 0 bytes. This method should not be called if the
130 // transaction is busy processing a previous operation (like a pending Read). 130 // transaction is busy processing a previous operation (like a pending Read).
131 // 131 //
132 // DoneReading may also be called before the first Read() to notify that the 132 // DoneReading may also be called before the first Read() to notify that the
133 // entire response body is to be ignored (e.g., in a redirect). 133 // entire response body is to be ignored (e.g., in a redirect).
134 virtual void DoneReading() = 0; 134 virtual void DoneReading() = 0;
135 135
136 // Returns the response info for this transaction or NULL if the response 136 // Returns the response info for this transaction. Must not be called until
137 // info is not available. 137 // |Start| completes.
138 virtual const HttpResponseInfo* GetResponseInfo() const = 0; 138 virtual const HttpResponseInfo* GetResponseInfo() const = 0;
139 139
140 // Returns the load state for this transaction. 140 // Returns the load state for this transaction.
141 virtual LoadState GetLoadState() const = 0; 141 virtual LoadState GetLoadState() const = 0;
142 142
143 // Returns the upload progress in bytes. If there is no upload data, 143 // Returns the upload progress in bytes. If there is no upload data,
144 // zero will be returned. This does not include the request headers. 144 // zero will be returned. This does not include the request headers.
145 virtual UploadProgress GetUploadProgress() const = 0; 145 virtual UploadProgress GetUploadProgress() const = 0;
146 146
147 // SetQuicServerInfo sets a object which reads and writes public information 147 // SetQuicServerInfo sets a object which reads and writes public information
(...skipping 27 matching lines...) Expand all
175 175
176 // Resumes the transaction after being deferred. 176 // Resumes the transaction after being deferred.
177 virtual int ResumeNetworkStart() = 0; 177 virtual int ResumeNetworkStart() = 0;
178 178
179 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; 179 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0;
180 }; 180 };
181 181
182 } // namespace net 182 } // namespace net
183 183
184 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 184 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698