| 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 #include "chrome/browser/net/url_fetcher.h" | 5 #include "chrome/browser/net/url_fetcher.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/thread.h" | 9 #include "base/thread.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 cookies_, data_); | 296 cookies_, data_); |
| 297 } | 297 } |
| 298 } | 298 } |
| 299 | 299 |
| 300 void URLFetcher::set_upload_data(const std::string& upload_content_type, | 300 void URLFetcher::set_upload_data(const std::string& upload_content_type, |
| 301 const std::string& upload_content) { | 301 const std::string& upload_content) { |
| 302 core_->upload_content_type_ = upload_content_type; | 302 core_->upload_content_type_ = upload_content_type; |
| 303 core_->upload_content_ = upload_content; | 303 core_->upload_content_ = upload_content; |
| 304 } | 304 } |
| 305 | 305 |
| 306 const std::string& URLFetcher::upload_data() const { |
| 307 return core_->upload_content_; |
| 308 } |
| 309 |
| 306 void URLFetcher::set_load_flags(int load_flags) { | 310 void URLFetcher::set_load_flags(int load_flags) { |
| 307 core_->load_flags_ = load_flags; | 311 core_->load_flags_ = load_flags; |
| 308 } | 312 } |
| 309 | 313 |
| 310 int URLFetcher::load_flags() const { | 314 int URLFetcher::load_flags() const { |
| 311 return core_->load_flags_; | 315 return core_->load_flags_; |
| 312 } | 316 } |
| 313 | 317 |
| 314 void URLFetcher::set_extra_request_headers( | 318 void URLFetcher::set_extra_request_headers( |
| 315 const std::string& extra_request_headers) { | 319 const std::string& extra_request_headers) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 329 core_->Start(); | 333 core_->Start(); |
| 330 } | 334 } |
| 331 | 335 |
| 332 const GURL& URLFetcher::url() const { | 336 const GURL& URLFetcher::url() const { |
| 333 return core_->url_; | 337 return core_->url_; |
| 334 } | 338 } |
| 335 | 339 |
| 336 URLFetcher::Delegate* URLFetcher::delegate() const { | 340 URLFetcher::Delegate* URLFetcher::delegate() const { |
| 337 return core_->delegate(); | 341 return core_->delegate(); |
| 338 } | 342 } |
| OLD | NEW |