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 1913273003: Remove stack trace from URLFetcher / URLRequest for debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 630
631 // Sets the priority level for this request and any related 631 // Sets the priority level for this request and any related
632 // jobs. Must not change the priority to anything other than 632 // jobs. Must not change the priority to anything other than
633 // MAXIMUM_PRIORITY if the IGNORE_LIMITS load flag is set. 633 // MAXIMUM_PRIORITY if the IGNORE_LIMITS load flag is set.
634 void SetPriority(RequestPriority priority); 634 void SetPriority(RequestPriority priority);
635 635
636 // Returns true iff this request would be internally redirected to HTTPS 636 // Returns true iff this request would be internally redirected to HTTPS
637 // due to HSTS. If so, |redirect_url| is rewritten to the new HTTPS URL. 637 // due to HSTS. If so, |redirect_url| is rewritten to the new HTTPS URL.
638 bool GetHSTSRedirect(GURL* redirect_url) const; 638 bool GetHSTSRedirect(GURL* redirect_url) const;
639 639
640 // NOTE(willchan): This is just temporary for debugging
eroman 2016/04/25 17:12:36 "temporary" :)
641 // http://crbug.com/90971.
642 // Allows to setting debug info into the URLRequest.
643 void set_stack_trace(const base::debug::StackTrace& stack_trace);
644 const base::debug::StackTrace* stack_trace() const;
645
646 void set_received_response_content_length(int64_t received_content_length) { 640 void set_received_response_content_length(int64_t received_content_length) {
647 received_response_content_length_ = received_content_length; 641 received_response_content_length_ = received_content_length;
648 } 642 }
649 643
650 // The number of bytes in the raw response body (before any decompression, 644 // The number of bytes in the raw response body (before any decompression,
651 // etc.). This is only available after the final Read completes. Not available 645 // etc.). This is only available after the final Read completes. Not available
652 // for FTP responses. 646 // for FTP responses.
653 int64_t received_response_content_length() const { 647 int64_t received_response_content_length() const {
654 return received_response_content_length_; 648 return received_response_content_length_;
655 } 649 }
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
865 // Timing information for the most recent request. Its start times are 859 // Timing information for the most recent request. Its start times are
866 // populated during Start(), and the rest are populated in OnResponseReceived. 860 // populated during Start(), and the rest are populated in OnResponseReceived.
867 LoadTimingInfo load_timing_info_; 861 LoadTimingInfo load_timing_info_;
868 862
869 // Keeps track of whether or not OnBeforeNetworkStart has been called yet. 863 // Keeps track of whether or not OnBeforeNetworkStart has been called yet.
870 bool notified_before_network_start_; 864 bool notified_before_network_start_;
871 865
872 // The proxy server used for this request, if any. 866 // The proxy server used for this request, if any.
873 HostPortPair proxy_server_; 867 HostPortPair proxy_server_;
874 868
875 std::unique_ptr<const base::debug::StackTrace> stack_trace_;
876
877 DISALLOW_COPY_AND_ASSIGN(URLRequest); 869 DISALLOW_COPY_AND_ASSIGN(URLRequest);
878 }; 870 };
879 871
880 } // namespace net 872 } // namespace net
881 873
882 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 874 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698