OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_FRAME_PLUGIN_URL_REQUEST_H_ | 5 #ifndef CHROME_FRAME_PLUGIN_URL_REQUEST_H_ |
6 #define CHROME_FRAME_PLUGIN_URL_REQUEST_H_ | 6 #define CHROME_FRAME_PLUGIN_URL_REQUEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 int id() const { | 70 int id() const { |
71 return remote_request_id_; | 71 return remote_request_id_; |
72 } | 72 } |
73 const std::string& url() const { | 73 const std::string& url() const { |
74 return url_; | 74 return url_; |
75 } | 75 } |
76 const std::string& method() const { | 76 const std::string& method() const { |
77 return method_; | 77 return method_; |
78 } | 78 } |
| 79 |
| 80 void set_method(const std::string& new_method) { |
| 81 method_ = new_method; |
| 82 } |
| 83 |
79 const std::string& referrer() const { | 84 const std::string& referrer() const { |
80 return referrer_; | 85 return referrer_; |
81 } | 86 } |
82 const std::string& extra_headers() const { | 87 const std::string& extra_headers() const { |
83 return extra_headers_; | 88 return extra_headers_; |
84 } | 89 } |
85 scoped_refptr<net::UploadData> upload_data() { | 90 scoped_refptr<net::UploadData> upload_data() { |
86 return upload_data_; | 91 return upload_data_; |
87 } | 92 } |
88 | 93 |
(...skipping 17 matching lines...) Expand all Loading... |
106 std::string method_; | 111 std::string method_; |
107 std::string referrer_; | 112 std::string referrer_; |
108 std::string extra_headers_; | 113 std::string extra_headers_; |
109 scoped_refptr<net::UploadData> upload_data_; | 114 scoped_refptr<net::UploadData> upload_data_; |
110 URLRequestStatus::Status status_; | 115 URLRequestStatus::Status status_; |
111 }; | 116 }; |
112 | 117 |
113 | 118 |
114 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_ | 119 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_ |
115 | 120 |
OLD | NEW |