Chromium Code Reviews| 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 #include "net/url_request/url_request.h" | 5 #include "net/url_request/url_request.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/callback.h" | 9 #include "base/callback.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 338 // static | 338 // static |
| 339 void URLRequest::AllowFileAccess() { | 339 void URLRequest::AllowFileAccess() { |
| 340 URLRequestJobManager::GetInstance()->set_enable_file_access(true); | 340 URLRequestJobManager::GetInstance()->set_enable_file_access(true); |
| 341 } | 341 } |
| 342 | 342 |
| 343 // static | 343 // static |
| 344 bool URLRequest::IsFileAccessAllowed() { | 344 bool URLRequest::IsFileAccessAllowed() { |
| 345 return URLRequestJobManager::GetInstance()->enable_file_access(); | 345 return URLRequestJobManager::GetInstance()->enable_file_access(); |
| 346 } | 346 } |
| 347 | 347 |
| 348 void URLRequest::set_virtual_url(const GURL& virtual_url) { | |
|
darin (slow to review)
2012/03/27 03:20:49
we definitely don't want to teach the network stac
chebert
2012/03/31 21:03:18
Done.
| |
| 349 virtual_url_ = virtual_url; | |
| 350 } | |
| 351 | |
| 348 void URLRequest::set_first_party_for_cookies( | 352 void URLRequest::set_first_party_for_cookies( |
| 349 const GURL& first_party_for_cookies) { | 353 const GURL& first_party_for_cookies) { |
| 350 first_party_for_cookies_ = first_party_for_cookies; | 354 first_party_for_cookies_ = first_party_for_cookies; |
| 351 } | 355 } |
| 352 | 356 |
| 353 void URLRequest::set_method(const std::string& method) { | 357 void URLRequest::set_method(const std::string& method) { |
| 354 DCHECK(!is_pending_); | 358 DCHECK(!is_pending_); |
| 355 method_ = method; | 359 method_ = method; |
| 356 } | 360 } |
| 357 | 361 |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 864 | 868 |
| 865 void URLRequest::SetUnblockedOnDelegate() { | 869 void URLRequest::SetUnblockedOnDelegate() { |
| 866 if (!blocked_on_delegate_) | 870 if (!blocked_on_delegate_) |
| 867 return; | 871 return; |
| 868 blocked_on_delegate_ = false; | 872 blocked_on_delegate_ = false; |
| 869 load_state_param_.clear(); | 873 load_state_param_.clear(); |
| 870 net_log_.EndEvent(NetLog::TYPE_URL_REQUEST_BLOCKED_ON_DELEGATE, NULL); | 874 net_log_.EndEvent(NetLog::TYPE_URL_REQUEST_BLOCKED_ON_DELEGATE, NULL); |
| 871 } | 875 } |
| 872 | 876 |
| 873 } // namespace net | 877 } // namespace net |
| OLD | NEW |