| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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 "net/url_request/url_request.h" | 5 #include "net/url_request/url_request.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
| 9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
| 10 #include "base/stats_counters.h" | 10 #include "base/stats_counters.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 job_->SetAuth(username, password); | 360 job_->SetAuth(username, password); |
| 361 } | 361 } |
| 362 | 362 |
| 363 void URLRequest::CancelAuth() { | 363 void URLRequest::CancelAuth() { |
| 364 DCHECK(job_); | 364 DCHECK(job_); |
| 365 DCHECK(job_->NeedsAuth()); | 365 DCHECK(job_->NeedsAuth()); |
| 366 | 366 |
| 367 job_->CancelAuth(); | 367 job_->CancelAuth(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void URLRequest::ContinueWithCertificate(net::X509Certificate* client_cert) { |
| 371 DCHECK(job_); |
| 372 |
| 373 job_->ContinueWithCertificate(client_cert); |
| 374 } |
| 375 |
| 370 void URLRequest::ContinueDespiteLastError() { | 376 void URLRequest::ContinueDespiteLastError() { |
| 371 DCHECK(job_); | 377 DCHECK(job_); |
| 372 | 378 |
| 373 job_->ContinueDespiteLastError(); | 379 job_->ContinueDespiteLastError(); |
| 374 } | 380 } |
| 375 | 381 |
| 376 void URLRequest::OrphanJob() { | 382 void URLRequest::OrphanJob() { |
| 377 job_->DetachRequest(); // ensures that the job will not call us again | 383 job_->DetachRequest(); // ensures that the job will not call us again |
| 378 job_ = NULL; | 384 job_ = NULL; |
| 379 } | 385 } |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 } | 474 } |
| 469 | 475 |
| 470 #ifndef NDEBUG | 476 #ifndef NDEBUG |
| 471 | 477 |
| 472 URLRequestMetrics::~URLRequestMetrics() { | 478 URLRequestMetrics::~URLRequestMetrics() { |
| 473 DLOG_IF(WARNING, object_count != 0) << | 479 DLOG_IF(WARNING, object_count != 0) << |
| 474 "Leaking " << object_count << " URLRequest object(s)"; | 480 "Leaking " << object_count << " URLRequest object(s)"; |
| 475 } | 481 } |
| 476 | 482 |
| 477 #endif | 483 #endif |
| OLD | NEW |