| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 | 143 |
| 144 const std::string& extra_headers() const { | 144 const std::string& extra_headers() const { |
| 145 return extra_headers_; | 145 return extra_headers_; |
| 146 } | 146 } |
| 147 | 147 |
| 148 uint64 post_data_len() const { | 148 uint64 post_data_len() const { |
| 149 return post_data_len_; | 149 return post_data_len_; |
| 150 } | 150 } |
| 151 | 151 |
| 152 bool is_chunked_upload() const { |
| 153 return is_chunked_upload_; |
| 154 } |
| 155 |
| 152 protected: | 156 protected: |
| 153 HRESULT get_upload_data(IStream** ret) { | 157 HRESULT get_upload_data(IStream** ret) { |
| 154 DCHECK(ret); | 158 DCHECK(ret); |
| 155 if (!upload_data_.get()) | 159 if (!upload_data_.get()) |
| 156 return S_FALSE; | 160 return S_FALSE; |
| 157 *ret = upload_data_.get(); | 161 *ret = upload_data_.get(); |
| 158 (*ret)->AddRef(); | 162 (*ret)->AddRef(); |
| 159 return S_OK; | 163 return S_OK; |
| 160 } | 164 } |
| 161 | 165 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 174 PluginUrlRequestDelegate* delegate_; | 178 PluginUrlRequestDelegate* delegate_; |
| 175 int remote_request_id_; | 179 int remote_request_id_; |
| 176 uint64 post_data_len_; | 180 uint64 post_data_len_; |
| 177 std::string url_; | 181 std::string url_; |
| 178 std::string method_; | 182 std::string method_; |
| 179 std::string referrer_; | 183 std::string referrer_; |
| 180 std::string extra_headers_; | 184 std::string extra_headers_; |
| 181 ResourceType::Type resource_type_; | 185 ResourceType::Type resource_type_; |
| 182 int load_flags_; | 186 int load_flags_; |
| 183 ScopedComPtr<IStream> upload_data_; | 187 ScopedComPtr<IStream> upload_data_; |
| 188 bool is_chunked_upload_; |
| 184 }; | 189 }; |
| 185 | 190 |
| 186 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_ | 191 #endif // CHROME_FRAME_PLUGIN_URL_REQUEST_H_ |
| OLD | NEW |