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

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

Issue 592903002: Changed URLRequest::received_response_content_length() to be a const method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 659
660 // NOTE(willchan): This is just temporary for debugging 660 // NOTE(willchan): This is just temporary for debugging
661 // http://crbug.com/90971. 661 // http://crbug.com/90971.
662 // Allows to setting debug info into the URLRequest. 662 // Allows to setting debug info into the URLRequest.
663 void set_stack_trace(const base::debug::StackTrace& stack_trace); 663 void set_stack_trace(const base::debug::StackTrace& stack_trace);
664 const base::debug::StackTrace* stack_trace() const; 664 const base::debug::StackTrace* stack_trace() const;
665 665
666 void set_received_response_content_length(int64 received_content_length) { 666 void set_received_response_content_length(int64 received_content_length) {
667 received_response_content_length_ = received_content_length; 667 received_response_content_length_ = received_content_length;
668 } 668 }
669 int64 received_response_content_length() { 669 int64 received_response_content_length() const {
670 return received_response_content_length_; 670 return received_response_content_length_;
671 } 671 }
672 672
673 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before 673 // Available at NetworkDelegate::NotifyHeadersReceived() time, which is before
674 // the more general response_info() is available, even though it is a subset. 674 // the more general response_info() is available, even though it is a subset.
675 const HostPortPair& proxy_server() const { 675 const HostPortPair& proxy_server() const {
676 return proxy_server_; 676 return proxy_server_;
677 } 677 }
678 678
679 protected: 679 protected:
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 891
892 // The proxy server used for this request, if any. 892 // The proxy server used for this request, if any.
893 HostPortPair proxy_server_; 893 HostPortPair proxy_server_;
894 894
895 DISALLOW_COPY_AND_ASSIGN(URLRequest); 895 DISALLOW_COPY_AND_ASSIGN(URLRequest);
896 }; 896 };
897 897
898 } // namespace net 898 } // namespace net
899 899
900 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 900 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698