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

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

Issue 2540233002: Instrument SourceStream using MemoryDumpProvider
Patch Set: Rebased Created 4 years 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 | « net/filter/source_stream.h ('k') | net/url_request/url_request.cc » ('j') | 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 22 matching lines...) Expand all
33 #include "net/http/http_response_info.h" 33 #include "net/http/http_response_info.h"
34 #include "net/log/net_log_with_source.h" 34 #include "net/log/net_log_with_source.h"
35 #include "net/proxy/proxy_server.h" 35 #include "net/proxy/proxy_server.h"
36 #include "net/socket/connection_attempts.h" 36 #include "net/socket/connection_attempts.h"
37 #include "net/url_request/url_request_status.h" 37 #include "net/url_request/url_request_status.h"
38 #include "url/gurl.h" 38 #include "url/gurl.h"
39 #include "url/origin.h" 39 #include "url/origin.h"
40 40
41 namespace base { 41 namespace base {
42 class Value; 42 class Value;
43 namespace trace_event {
44 class ProcessMemoryDump;
45 } // namespace trace_event
43 } // namespace base 46 } // namespace base
44 47
45 namespace net { 48 namespace net {
46 49
47 class CookieOptions; 50 class CookieOptions;
48 class HostPortPair; 51 class HostPortPair;
49 class IOBuffer; 52 class IOBuffer;
50 struct LoadTimingInfo; 53 struct LoadTimingInfo;
51 struct RedirectInfo; 54 struct RedirectInfo;
52 class SSLCertRequestInfo; 55 class SSLCertRequestInfo;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 // or after the response headers are received. 647 // or after the response headers are received.
645 void GetConnectionAttempts(ConnectionAttempts* out) const; 648 void GetConnectionAttempts(ConnectionAttempts* out) const;
646 649
647 // Gets the over the wire raw header size of the response after https 650 // Gets the over the wire raw header size of the response after https
648 // encryption, 0 for cached responses. 651 // encryption, 0 for cached responses.
649 int raw_header_size() const { return raw_header_size_; } 652 int raw_header_size() const { return raw_header_size_; }
650 653
651 // Returns the error status of the request. 654 // Returns the error status of the request.
652 // Do not use! Going to be protected! 655 // Do not use! Going to be protected!
653 const URLRequestStatus& status() const { return status_; } 656 const URLRequestStatus& status() const { return status_; }
657
658 // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
659 // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
660 void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
661 const std::string& parent_dump_absolute_name) const;
662
654 protected: 663 protected:
655 // Allow the URLRequestJob class to control the is_pending() flag. 664 // Allow the URLRequestJob class to control the is_pending() flag.
656 void set_is_pending(bool value) { is_pending_ = value; } 665 void set_is_pending(bool value) { is_pending_ = value; }
657 666
658 // Allow the URLRequestJob class to set our status too. 667 // Allow the URLRequestJob class to set our status too.
659 void set_status(URLRequestStatus status); 668 void set_status(URLRequestStatus status);
660 669
661 // Allow the URLRequestJob to redirect this request. Returns OK if 670 // Allow the URLRequestJob to redirect this request. Returns OK if
662 // successful, otherwise an error code is returned. 671 // successful, otherwise an error code is returned.
663 int Redirect(const RedirectInfo& redirect_info); 672 int Redirect(const RedirectInfo& redirect_info);
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 861
853 // The raw header size of the response. 862 // The raw header size of the response.
854 int raw_header_size_; 863 int raw_header_size_;
855 864
856 DISALLOW_COPY_AND_ASSIGN(URLRequest); 865 DISALLOW_COPY_AND_ASSIGN(URLRequest);
857 }; 866 };
858 867
859 } // namespace net 868 } // namespace net
860 869
861 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 870 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/filter/source_stream.h ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698