OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/cert_net/cert_net_fetcher_impl.h" | 5 #include "net/cert_net/cert_net_fetcher_impl.h" |
6 | 6 |
7 #include <tuple> | 7 #include <tuple> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/containers/linked_list.h" | 10 #include "base/containers/linked_list.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
12 #include "base/numerics/safe_math.h" | 13 #include "base/numerics/safe_math.h" |
13 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
14 #include "base/timer/timer.h" | 15 #include "base/timer/timer.h" |
15 #include "net/base/load_flags.h" | 16 #include "net/base/load_flags.h" |
16 #include "net/url_request/redirect_info.h" | 17 #include "net/url_request/redirect_info.h" |
17 #include "net/url_request/url_request_context.h" | 18 #include "net/url_request/url_request_context.h" |
18 | 19 |
19 // TODO(eroman): Add support for POST parameters. | 20 // TODO(eroman): Add support for POST parameters. |
20 // TODO(eroman): Add controls for bypassing the cache. | 21 // TODO(eroman): Add controls for bypassing the cache. |
21 // TODO(eroman): Add a maximum number of in-flight jobs/requests. | 22 // TODO(eroman): Add a maximum number of in-flight jobs/requests. |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 void CertNetFetcherImpl::ClearCurrentlyCompletingJob(Job* job) { | 544 void CertNetFetcherImpl::ClearCurrentlyCompletingJob(Job* job) { |
544 DCHECK_EQ(currently_completing_job_, job); | 545 DCHECK_EQ(currently_completing_job_, job); |
545 currently_completing_job_ = nullptr; | 546 currently_completing_job_ = nullptr; |
546 } | 547 } |
547 | 548 |
548 bool CertNetFetcherImpl::IsCurrentlyCompletingJob(Job* job) { | 549 bool CertNetFetcherImpl::IsCurrentlyCompletingJob(Job* job) { |
549 return job == currently_completing_job_; | 550 return job == currently_completing_job_; |
550 } | 551 } |
551 | 552 |
552 } // namespace net | 553 } // namespace net |
OLD | NEW |