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

Unified Diff: net/url_request/url_request.cc

Issue 363025: Improve the display of LoadLogs when truncation occurs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Change -1 to be a constant instead Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/tcp_client_socket_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
===================================================================
--- net/url_request/url_request.cc (revision 31195)
+++ net/url_request/url_request.cc (working copy)
@@ -27,6 +27,9 @@
// Max number of http redirects to follow. Same number as gecko.
static const int kMaxRedirects = 20;
+// The maximum size of the passive LoadLog associated with each request.
+static const int kMaxNumLoadLogEntries = 50;
+
static URLRequestJobManager* GetJobManager() {
return Singleton<URLRequestJobManager>::get();
}
@@ -35,7 +38,7 @@
// URLRequest
URLRequest::URLRequest(const GURL& url, Delegate* delegate)
- : load_log_(new net::LoadLog),
+ : load_log_(new net::LoadLog(kMaxNumLoadLogEntries)),
url_(url),
original_url_(url),
method_("GET"),
« no previous file with comments | « net/socket/tcp_client_socket_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698