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

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: Changes Created 4 years, 3 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 over the wire raw header size of the response after https
652 // encryption, 0 for cached responses.
653 int raw_header_size() const { return raw_header_size_; }
654
651 protected: 655 protected:
652 // Allow the URLRequestJob class to control the is_pending() flag. 656 // Allow the URLRequestJob class to control the is_pending() flag.
653 void set_is_pending(bool value) { is_pending_ = value; } 657 void set_is_pending(bool value) { is_pending_ = value; }
654 658
655 // Allow the URLRequestJob class to set our status too. 659 // Allow the URLRequestJob class to set our status too.
656 void set_status(URLRequestStatus status); 660 void set_status(URLRequestStatus status);
657 661
658 // Allow the URLRequestJob to redirect this request. Returns OK if 662 // Allow the URLRequestJob to redirect this request. Returns OK if
659 // successful, otherwise an error code is returned. 663 // successful, otherwise an error code is returned.
660 int Redirect(const RedirectInfo& redirect_info); 664 int Redirect(const RedirectInfo& redirect_info);
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 845
842 base::TimeTicks creation_time_; 846 base::TimeTicks creation_time_;
843 847
844 // Timing information for the most recent request. Its start times are 848 // Timing information for the most recent request. Its start times are
845 // populated during Start(), and the rest are populated in OnResponseReceived. 849 // populated during Start(), and the rest are populated in OnResponseReceived.
846 LoadTimingInfo load_timing_info_; 850 LoadTimingInfo load_timing_info_;
847 851
848 // The proxy server used for this request, if any. 852 // The proxy server used for this request, if any.
849 HostPortPair proxy_server_; 853 HostPortPair proxy_server_;
850 854
855 // The raw header size of the response.
856 int raw_header_size_;
857
851 DISALLOW_COPY_AND_ASSIGN(URLRequest); 858 DISALLOW_COPY_AND_ASSIGN(URLRequest);
852 }; 859 };
853 860
854 } // namespace net 861 } // namespace net
855 862
856 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 863 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698