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

Side by Side Diff: net/url_request/url_request.h

Issue 99533002: Disabled resource scheduling when using a SPDY proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved spdy proxy check to dispatcher as an explicit call when we start to get a response and added … Created 6 years, 11 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 | « content/browser/loader/resource_scheduler_unittest.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) 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 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 } 493 }
494 494
495 // Indicate if this response was fetched from disk cache. 495 // Indicate if this response was fetched from disk cache.
496 bool was_cached() const { return response_info_.was_cached; } 496 bool was_cached() const { return response_info_.was_cached; }
497 497
498 // Returns true if the URLRequest was delivered through a proxy. 498 // Returns true if the URLRequest was delivered through a proxy.
499 bool was_fetched_via_proxy() const { 499 bool was_fetched_via_proxy() const {
500 return response_info_.was_fetched_via_proxy; 500 return response_info_.was_fetched_via_proxy;
501 } 501 }
502 502
503 // Returns true if the URLRequest was delivered over SPDY.
willchan no longer on Chromium 2014/01/08 19:03:09 I'm mostly fine with this, but it might be the tim
Pat Meenan 2014/01/08 19:10:57 It is true for both cases, the flag gets set as lo
504 bool was_fetched_via_spdy() const {
505 return response_info_.was_fetched_via_spdy;
506 }
507
503 // Returns the host and port that the content was fetched from. See 508 // Returns the host and port that the content was fetched from. See
504 // http_response_info.h for caveats relating to cached content. 509 // http_response_info.h for caveats relating to cached content.
505 HostPortPair GetSocketAddress() const; 510 HostPortPair GetSocketAddress() const;
506 511
507 // Get all response headers, as a HttpResponseHeaders object. See comments 512 // Get all response headers, as a HttpResponseHeaders object. See comments
508 // in HttpResponseHeaders class as to the format of the data. 513 // in HttpResponseHeaders class as to the format of the data.
509 HttpResponseHeaders* response_headers() const; 514 HttpResponseHeaders* response_headers() const;
510 515
511 // Get the SSL connection info. 516 // Get the SSL connection info.
512 const SSLInfo& ssl_info() const { 517 const SSLInfo& ssl_info() const {
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 LoadTimingInfo load_timing_info_; 883 LoadTimingInfo load_timing_info_;
879 884
880 scoped_ptr<const base::debug::StackTrace> stack_trace_; 885 scoped_ptr<const base::debug::StackTrace> stack_trace_;
881 886
882 DISALLOW_COPY_AND_ASSIGN(URLRequest); 887 DISALLOW_COPY_AND_ASSIGN(URLRequest);
883 }; 888 };
884 889
885 } // namespace net 890 } // namespace net
886 891
887 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 892 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_scheduler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698