OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 int Redirect(const GURL& location, int http_status_code); | 430 int Redirect(const GURL& location, int http_status_code); |
431 | 431 |
432 private: | 432 private: |
433 friend class URLRequestJob; | 433 friend class URLRequestJob; |
434 | 434 |
435 // Detaches the job from this request in preparation for this object going | 435 // Detaches the job from this request in preparation for this object going |
436 // away or the job being replaced. The job will not call us back when it has | 436 // away or the job being replaced. The job will not call us back when it has |
437 // been orphaned. | 437 // been orphaned. |
438 void OrphanJob(); | 438 void OrphanJob(); |
439 | 439 |
| 440 // Discard headers which have meaning in POST (Content-Length, Content-Type, |
| 441 // Origin). |
| 442 static std::string StripPostSpecificHeaders(const std::string& headers); |
| 443 |
440 scoped_refptr<URLRequestJob> job_; | 444 scoped_refptr<URLRequestJob> job_; |
441 scoped_refptr<net::UploadData> upload_; | 445 scoped_refptr<net::UploadData> upload_; |
442 GURL url_; | 446 GURL url_; |
443 GURL original_url_; | 447 GURL original_url_; |
444 GURL policy_url_; | 448 GURL policy_url_; |
445 std::string method_; // "GET", "POST", etc. Should be all uppercase. | 449 std::string method_; // "GET", "POST", etc. Should be all uppercase. |
446 std::string referrer_; | 450 std::string referrer_; |
447 std::string extra_request_headers_; | 451 std::string extra_request_headers_; |
448 int load_flags_; // Flags indicating the request type for the load; | 452 int load_flags_; // Flags indicating the request type for the load; |
449 // expected values are LOAD_* enums above. | 453 // expected values are LOAD_* enums above. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 #else // disable leak checking in release builds... | 515 #else // disable leak checking in release builds... |
512 | 516 |
513 #define URLREQUEST_COUNT_CTOR() | 517 #define URLREQUEST_COUNT_CTOR() |
514 #define URLREQUEST_COUNT_DTOR() | 518 #define URLREQUEST_COUNT_DTOR() |
515 | 519 |
516 #endif | 520 #endif |
517 | 521 |
518 | 522 |
519 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 523 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
520 | 524 |
OLD | NEW |