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

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

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: temp Created 4 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
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 21 matching lines...) Expand all
32 #include "net/http/http_response_info.h" 32 #include "net/http/http_response_info.h"
33 #include "net/log/net_log_with_source.h" 33 #include "net/log/net_log_with_source.h"
34 #include "net/proxy/proxy_server.h" 34 #include "net/proxy/proxy_server.h"
35 #include "net/socket/connection_attempts.h" 35 #include "net/socket/connection_attempts.h"
36 #include "net/url_request/url_request_status.h" 36 #include "net/url_request/url_request_status.h"
37 #include "url/gurl.h" 37 #include "url/gurl.h"
38 #include "url/origin.h" 38 #include "url/origin.h"
39 39
40 namespace base { 40 namespace base {
41 class Value; 41 class Value;
42 namespace trace_event {
43 class MemoryAllocatorDump;
44 }
42 45
43 namespace debug { 46 namespace debug {
44 class StackTrace; 47 class StackTrace;
45 } // namespace debug 48 } // namespace debug
46 } // namespace base 49 } // namespace base
47 50
48 namespace net { 51 namespace net {
49 52
50 class CookieOptions; 53 class CookieOptions;
51 class HostPortPair; 54 class HostPortPair;
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 // or after the response headers are received. 646 // or after the response headers are received.
644 void GetConnectionAttempts(ConnectionAttempts* out) const; 647 void GetConnectionAttempts(ConnectionAttempts* out) const;
645 648
646 // Gets the over the wire raw header size of the response after https 649 // Gets the over the wire raw header size of the response after https
647 // encryption, 0 for cached responses. 650 // encryption, 0 for cached responses.
648 int raw_header_size() const { return raw_header_size_; } 651 int raw_header_size() const { return raw_header_size_; }
649 652
650 // Returns the error status of the request. 653 // Returns the error status of the request.
651 // Do not use! Going to be protected! 654 // Do not use! Going to be protected!
652 const URLRequestStatus& status() const { return status_; } 655 const URLRequestStatus& status() const { return status_; }
656
657 void PopulateAllocatorDump(base::trace_event::MemoryAllocatorDump* dump) const ;
658
653 protected: 659 protected:
654 // Allow the URLRequestJob class to control the is_pending() flag. 660 // Allow the URLRequestJob class to control the is_pending() flag.
655 void set_is_pending(bool value) { is_pending_ = value; } 661 void set_is_pending(bool value) { is_pending_ = value; }
656 662
657 // Allow the URLRequestJob class to set our status too. 663 // Allow the URLRequestJob class to set our status too.
658 void set_status(URLRequestStatus status); 664 void set_status(URLRequestStatus status);
659 665
660 // Allow the URLRequestJob to redirect this request. Returns OK if 666 // Allow the URLRequestJob to redirect this request. Returns OK if
661 // successful, otherwise an error code is returned. 667 // successful, otherwise an error code is returned.
662 int Redirect(const RedirectInfo& redirect_info); 668 int Redirect(const RedirectInfo& redirect_info);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 862
857 // The raw header size of the response. 863 // The raw header size of the response.
858 int raw_header_size_; 864 int raw_header_size_;
859 865
860 DISALLOW_COPY_AND_ASSIGN(URLRequest); 866 DISALLOW_COPY_AND_ASSIGN(URLRequest);
861 }; 867 };
862 868
863 } // namespace net 869 } // namespace net
864 870
865 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 871 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698