OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 void NotifyReadCompleted(int bytes_read); | 678 void NotifyReadCompleted(int bytes_read); |
679 | 679 |
680 // Called when the delegate blocks or unblocks this request when intercepting | 680 // Called when the delegate blocks or unblocks this request when intercepting |
681 // certain requests. | 681 // certain requests. |
682 void SetBlockedOnDelegate(); | 682 void SetBlockedOnDelegate(); |
683 void SetUnblockedOnDelegate(); | 683 void SetUnblockedOnDelegate(); |
684 | 684 |
685 // Contextual information used for this request (can be NULL). This contains | 685 // Contextual information used for this request (can be NULL). This contains |
686 // most of the dependencies which are shared between requests (disk cache, | 686 // most of the dependencies which are shared between requests (disk cache, |
687 // cookie store, socket pool, etc.) | 687 // cookie store, socket pool, etc.) |
688 scoped_refptr<const URLRequestContext> context_; | 688 const URLRequestContext* context_; |
689 | 689 |
690 // Tracks the time spent in various load states throughout this request. | 690 // Tracks the time spent in various load states throughout this request. |
691 BoundNetLog net_log_; | 691 BoundNetLog net_log_; |
692 | 692 |
693 scoped_refptr<URLRequestJob> job_; | 693 scoped_refptr<URLRequestJob> job_; |
694 scoped_refptr<UploadData> upload_; | 694 scoped_refptr<UploadData> upload_; |
695 std::vector<GURL> url_chain_; | 695 std::vector<GURL> url_chain_; |
696 GURL first_party_for_cookies_; | 696 GURL first_party_for_cookies_; |
697 GURL delegate_redirect_url_; | 697 GURL delegate_redirect_url_; |
698 std::string method_; // "GET", "POST", etc. Should be all uppercase. | 698 std::string method_; // "GET", "POST", etc. Should be all uppercase. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 scoped_refptr<AuthChallengeInfo> auth_info_; | 766 scoped_refptr<AuthChallengeInfo> auth_info_; |
767 | 767 |
768 base::TimeTicks creation_time_; | 768 base::TimeTicks creation_time_; |
769 | 769 |
770 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 770 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
771 }; | 771 }; |
772 | 772 |
773 } // namespace net | 773 } // namespace net |
774 | 774 |
775 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 775 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
OLD | NEW |