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

Side by Side Diff: net/http/http_basic_stream.cc

Issue 2140253002: Add metrics to track HTTP/0.9 usage for main frames and subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | net/http/http_response_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "net/http/http_basic_stream.h" 5 #include "net/http/http_basic_stream.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "net/http/http_request_info.h" 9 #include "net/http/http_request_info.h"
10 #include "net/http/http_response_body_drainer.h" 10 #include "net/http/http_response_body_drainer.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 return parser()->GetSignedEKMForTokenBinding(key, out); 117 return parser()->GetSignedEKMForTokenBinding(key, out);
118 } 118 }
119 119
120 void HttpBasicStream::Drain(HttpNetworkSession* session) { 120 void HttpBasicStream::Drain(HttpNetworkSession* session) {
121 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); 121 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this);
122 drainer->Start(session); 122 drainer->Start(session);
123 // |drainer| will delete itself. 123 // |drainer| will delete itself.
124 } 124 }
125 125
126 void HttpBasicStream::PopulateNetErrorDetails(NetErrorDetails* details) { 126 void HttpBasicStream::PopulateNetErrorDetails(NetErrorDetails* details) {
127 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP1; 127 // TODO(mmenke): Consumers don't actually care about HTTP version, but seems
128 // like the right version should be reported, if headers were received.
129 details->connection_info = HttpResponseInfo::CONNECTION_INFO_HTTP1_1;
128 return; 130 return;
129 } 131 }
130 132
131 void HttpBasicStream::SetPriority(RequestPriority priority) { 133 void HttpBasicStream::SetPriority(RequestPriority priority) {
132 // TODO(akalin): Plumb this through to |connection_|. 134 // TODO(akalin): Plumb this through to |connection_|.
133 } 135 }
134 136
135 } // namespace net 137 } // namespace net
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | net/http/http_response_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698