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

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

Issue 2167853003: [DevTools] Always report encodedDataLength in Network.ResponseReceived. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Header sizes in devtools 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // the more general response_info() is available, even though it is a subset. 641 // the more general response_info() is available, even though it is a subset.
642 const HostPortPair& proxy_server() const { 642 const HostPortPair& proxy_server() const {
643 return proxy_server_; 643 return proxy_server_;
644 } 644 }
645 645
646 // Gets the connection attempts made in the process of servicing this 646 // Gets the connection attempts made in the process of servicing this
647 // URLRequest. Only guaranteed to be valid if called after the request fails 647 // URLRequest. Only guaranteed to be valid if called after the request fails
648 // or after the response headers are received. 648 // or after the response headers are received.
649 void GetConnectionAttempts(ConnectionAttempts* out) const; 649 void GetConnectionAttempts(ConnectionAttempts* out) const;
650 650
651 // Gets the raw header size of the request.
mmenke 2016/07/21 18:10:50 It's unclear what "raw header size" means. You sh
mmenke 2016/07/21 18:47:02 Actually, I think with H2/QUIC, it may be able to
allada 2016/07/22 17:19:32 This property contains the value of the size in by
mmenke 2016/07/22 18:50:09 Hrm...Digging into HttpStreamParser, it looks like
652 int raw_header_size() const { return raw_header_size_; }
653
651 protected: 654 protected:
652 // Allow the URLRequestJob class to control the is_pending() flag. 655 // Allow the URLRequestJob class to control the is_pending() flag.
653 void set_is_pending(bool value) { is_pending_ = value; } 656 void set_is_pending(bool value) { is_pending_ = value; }
654 657
655 // Allow the URLRequestJob class to set our status too 658 // Allow the URLRequestJob class to set our status too
656 void set_status(const URLRequestStatus& value) { status_ = value; } 659 void set_status(const URLRequestStatus& value) { status_ = value; }
657 660
658 // Allow the URLRequestJob to redirect this request. Returns OK if 661 // Allow the URLRequestJob to redirect this request. Returns OK if
659 // successful, otherwise an error code is returned. 662 // successful, otherwise an error code is returned.
660 int Redirect(const RedirectInfo& redirect_info); 663 int Redirect(const RedirectInfo& redirect_info);
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 844
842 base::TimeTicks creation_time_; 845 base::TimeTicks creation_time_;
843 846
844 // Timing information for the most recent request. Its start times are 847 // Timing information for the most recent request. Its start times are
845 // populated during Start(), and the rest are populated in OnResponseReceived. 848 // populated during Start(), and the rest are populated in OnResponseReceived.
846 LoadTimingInfo load_timing_info_; 849 LoadTimingInfo load_timing_info_;
847 850
848 // The proxy server used for this request, if any. 851 // The proxy server used for this request, if any.
849 HostPortPair proxy_server_; 852 HostPortPair proxy_server_;
850 853
854 // The raw header size of the request.
855 int raw_header_size_;
856
851 DISALLOW_COPY_AND_ASSIGN(URLRequest); 857 DISALLOW_COPY_AND_ASSIGN(URLRequest);
852 }; 858 };
853 859
854 } // namespace net 860 } // namespace net
855 861
856 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 862 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698