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

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

Issue 2414883005: TEMP DO NOT LAND (Closed)
Patch Set: tmp Created 4 years, 1 month 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/ssl/ssl_client_session_cache.cc ('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 MemoryAllocatorDump;
45 }
43 46
44 namespace debug { 47 namespace debug {
45 class StackTrace; 48 class StackTrace;
46 } // namespace debug 49 } // namespace debug
47 } // namespace base 50 } // namespace base
48 51
49 namespace net { 52 namespace net {
50 53
51 class CookieOptions; 54 class CookieOptions;
52 class HostPortPair; 55 class HostPortPair;
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 // or after the response headers are received. 651 // or after the response headers are received.
649 void GetConnectionAttempts(ConnectionAttempts* out) const; 652 void GetConnectionAttempts(ConnectionAttempts* out) const;
650 653
651 // Gets the over the wire raw header size of the response after https 654 // Gets the over the wire raw header size of the response after https
652 // encryption, 0 for cached responses. 655 // encryption, 0 for cached responses.
653 int raw_header_size() const { return raw_header_size_; } 656 int raw_header_size() const { return raw_header_size_; }
654 657
655 // Returns the error status of the request. 658 // Returns the error status of the request.
656 // Do not use! Going to be protected! 659 // Do not use! Going to be protected!
657 const URLRequestStatus& status() const { return status_; } 660 const URLRequestStatus& status() const { return status_; }
661
662 void PopulateAllocatorDump(base::trace_event::MemoryAllocatorDump* dump) const ;
663
658 protected: 664 protected:
659 // Allow the URLRequestJob class to control the is_pending() flag. 665 // Allow the URLRequestJob class to control the is_pending() flag.
660 void set_is_pending(bool value) { is_pending_ = value; } 666 void set_is_pending(bool value) { is_pending_ = value; }
661 667
662 // Allow the URLRequestJob class to set our status too. 668 // Allow the URLRequestJob class to set our status too.
663 void set_status(URLRequestStatus status); 669 void set_status(URLRequestStatus status);
664 670
665 // Allow the URLRequestJob to redirect this request. Returns OK if 671 // Allow the URLRequestJob to redirect this request. Returns OK if
666 // successful, otherwise an error code is returned. 672 // successful, otherwise an error code is returned.
667 int Redirect(const RedirectInfo& redirect_info); 673 int Redirect(const RedirectInfo& redirect_info);
(...skipping 188 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
« no previous file with comments | « net/ssl/ssl_client_session_cache.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698