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

Unified Diff: net/http/failing_http_transaction_factory.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/failing_http_transaction_factory.cc
diff --git a/net/http/failing_http_transaction_factory.cc b/net/http/failing_http_transaction_factory.cc
index b871576712411168c01eef857500a712ef96c82f..07023f205fb52f6c62c586201136a52089b8e5ff 100644
--- a/net/http/failing_http_transaction_factory.cc
+++ b/net/http/failing_http_transaction_factory.cc
@@ -10,6 +10,7 @@
#include "base/message_loop/message_loop.h"
#include "net/base/load_timing_info.h"
#include "net/base/upload_progress.h"
+#include "net/http/http_response_info.h"
#include "net/socket/connection_attempts.h"
namespace net {
@@ -20,8 +21,6 @@ class HttpRequestHeaders;
class IOBuffer;
class X509Certificate;
-struct HttpRequestInfo;
-
namespace {
// A simple class to interpose between the cache and network http layers.
@@ -66,6 +65,7 @@ class FailingHttpTransaction : public HttpTransaction {
private:
Error error_;
+ HttpResponseInfo response_;
};
FailingHttpTransaction::FailingHttpTransaction(Error error) : error_(error) {
@@ -125,7 +125,7 @@ void FailingHttpTransaction::DoneReading() {
}
const HttpResponseInfo* FailingHttpTransaction::GetResponseInfo() const {
- return NULL;
+ return &response_;
}
LoadState FailingHttpTransaction::GetLoadState() const {
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698