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

Side by Side Diff: webkit/glue/weburlloader_impl.cc

Issue 2808010: Add field trial stats for alternate_protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « webkit/glue/resource_loader_bridge.cc ('k') | no next file » | 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge.
6 6
7 #include "webkit/glue/weburlloader_impl.h" 7 #include "webkit/glue/weburlloader_impl.h"
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 response->setURL(url); 165 response->setURL(url);
166 response->setResponseTime(info.response_time.ToDoubleT()); 166 response->setResponseTime(info.response_time.ToDoubleT());
167 response->setMIMEType(WebString::fromUTF8(info.mime_type)); 167 response->setMIMEType(WebString::fromUTF8(info.mime_type));
168 response->setTextEncodingName(WebString::fromUTF8(info.charset)); 168 response->setTextEncodingName(WebString::fromUTF8(info.charset));
169 response->setExpectedContentLength(info.content_length); 169 response->setExpectedContentLength(info.content_length);
170 response->setSecurityInfo(info.security_info); 170 response->setSecurityInfo(info.security_info);
171 response->setAppCacheID(info.appcache_id); 171 response->setAppCacheID(info.appcache_id);
172 response->setAppCacheManifestURL(info.appcache_manifest_url); 172 response->setAppCacheManifestURL(info.appcache_manifest_url);
173 response->setWasFetchedViaSPDY(info.was_fetched_via_spdy); 173 response->setWasFetchedViaSPDY(info.was_fetched_via_spdy);
174 response->setWasNpnNegotiated(info.was_npn_negotiated); 174 response->setWasNpnNegotiated(info.was_npn_negotiated);
175 response->setWasAlternateProtocolAvailable(
176 info.was_alternate_protocol_available);
175 response->setWasFetchedViaProxy(info.was_fetched_via_proxy); 177 response->setWasFetchedViaProxy(info.was_fetched_via_proxy);
176 178
177 const net::HttpResponseHeaders* headers = info.headers; 179 const net::HttpResponseHeaders* headers = info.headers;
178 if (!headers) 180 if (!headers)
179 return; 181 return;
180 182
181 response->setHTTPStatusCode(headers->response_code()); 183 response->setHTTPStatusCode(headers->response_code());
182 response->setHTTPStatusText(WebString::fromUTF8(headers->GetStatusText())); 184 response->setHTTPStatusText(WebString::fromUTF8(headers->GetStatusText()));
183 185
184 // TODO(darin): We should leverage HttpResponseHeaders for this, and this 186 // TODO(darin): We should leverage HttpResponseHeaders for this, and this
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 653
652 void WebURLLoaderImpl::cancel() { 654 void WebURLLoaderImpl::cancel() {
653 context_->Cancel(); 655 context_->Cancel();
654 } 656 }
655 657
656 void WebURLLoaderImpl::setDefersLoading(bool value) { 658 void WebURLLoaderImpl::setDefersLoading(bool value) {
657 context_->SetDefersLoading(value); 659 context_->SetDefersLoading(value);
658 } 660 }
659 661
660 } // namespace webkit_glue 662 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/resource_loader_bridge.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698