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

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

Issue 1097303003: Plumb ConnectionAttempts from HttpNetworkTransaction to URLRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@domrel_serverip1
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/url_request/url_request.cc » ('j') | net/url_request/url_request_job.h » ('J')
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 10 matching lines...) Expand all
21 #include "net/base/load_states.h" 21 #include "net/base/load_states.h"
22 #include "net/base/load_timing_info.h" 22 #include "net/base/load_timing_info.h"
23 #include "net/base/net_export.h" 23 #include "net/base/net_export.h"
24 #include "net/base/network_delegate.h" 24 #include "net/base/network_delegate.h"
25 #include "net/base/request_priority.h" 25 #include "net/base/request_priority.h"
26 #include "net/base/upload_progress.h" 26 #include "net/base/upload_progress.h"
27 #include "net/cookies/canonical_cookie.h" 27 #include "net/cookies/canonical_cookie.h"
28 #include "net/http/http_request_headers.h" 28 #include "net/http/http_request_headers.h"
29 #include "net/http/http_response_info.h" 29 #include "net/http/http_response_info.h"
30 #include "net/log/net_log.h" 30 #include "net/log/net_log.h"
31 #include "net/socket/connection_attempts.h"
31 #include "net/url_request/url_request_status.h" 32 #include "net/url_request/url_request_status.h"
32 #include "url/gurl.h" 33 #include "url/gurl.h"
33 34
34 namespace base { 35 namespace base {
35 class Value; 36 class Value;
36 37
37 namespace debug { 38 namespace debug {
38 class StackTrace; 39 class StackTrace;
39 } // namespace debug 40 } // namespace debug
40 } // namespace base 41 } // namespace base
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 int64 received_response_content_length() const { 602 int64 received_response_content_length() const {
602 return received_response_content_length_; 603 return received_response_content_length_;
603 } 604 }
604 605
605 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before 606 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before
606 // the more general response_info() is available, even though it is a subset. 607 // the more general response_info() is available, even though it is a subset.
607 const HostPortPair& proxy_server() const { 608 const HostPortPair& proxy_server() const {
608 return proxy_server_; 609 return proxy_server_;
609 } 610 }
610 611
612 void GetConnectionAttempts(ConnectionAttempts* out) const;
Randy Smith (Not in Mondays) 2015/05/11 20:59:31 Should this have a comment as to when during the U
613
611 protected: 614 protected:
612 // Allow the URLRequestJob class to control the is_pending() flag. 615 // Allow the URLRequestJob class to control the is_pending() flag.
613 void set_is_pending(bool value) { is_pending_ = value; } 616 void set_is_pending(bool value) { is_pending_ = value; }
614 617
615 // Allow the URLRequestJob class to set our status too 618 // Allow the URLRequestJob class to set our status too
616 void set_status(const URLRequestStatus& value) { status_ = value; } 619 void set_status(const URLRequestStatus& value) { status_ = value; }
617 620
618 // Allow the URLRequestJob to redirect this request. Returns OK if 621 // Allow the URLRequestJob to redirect this request. Returns OK if
619 // successful, otherwise an error code is returned. 622 // successful, otherwise an error code is returned.
620 int Redirect(const RedirectInfo& redirect_info); 623 int Redirect(const RedirectInfo& redirect_info);
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 820
818 // The proxy server used for this request, if any. 821 // The proxy server used for this request, if any.
819 HostPortPair proxy_server_; 822 HostPortPair proxy_server_;
820 823
821 DISALLOW_COPY_AND_ASSIGN(URLRequest); 824 DISALLOW_COPY_AND_ASSIGN(URLRequest);
822 }; 825 };
823 826
824 } // namespace net 827 } // namespace net
825 828
826 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 829 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request.cc » ('j') | net/url_request/url_request_job.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698