| 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 // Overview | 5 // Overview |
| 6 // | 6 // |
| 7 // The main entry point is CertNetFetcherImpl. This is an implementation of | 7 // The main entry point is CertNetFetcherImpl. This is an implementation of |
| 8 // CertNetFetcher that provides a service for fetching network requests. | 8 // CertNetFetcher that provides a service for fetching network requests. |
| 9 // | 9 // |
| 10 // The interface for CertNetFetcher is synchronous, however allows | 10 // The interface for CertNetFetcher is synchronous, however allows |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "net/cert_net/cert_net_fetcher_impl.h" | 59 #include "net/cert_net/cert_net_fetcher_impl.h" |
| 60 | 60 |
| 61 #include <tuple> | 61 #include <tuple> |
| 62 #include <utility> | 62 #include <utility> |
| 63 | 63 |
| 64 #include "base/callback_helpers.h" | 64 #include "base/callback_helpers.h" |
| 65 #include "base/logging.h" | 65 #include "base/logging.h" |
| 66 #include "base/macros.h" | 66 #include "base/macros.h" |
| 67 #include "base/memory/ptr_util.h" | 67 #include "base/memory/ptr_util.h" |
| 68 #include "base/numerics/safe_math.h" | 68 #include "base/numerics/safe_math.h" |
| 69 #include "base/single_thread_task_runner.h" |
| 69 #include "base/synchronization/waitable_event.h" | 70 #include "base/synchronization/waitable_event.h" |
| 70 #include "base/threading/thread_task_runner_handle.h" | 71 #include "base/threading/thread_task_runner_handle.h" |
| 71 #include "base/timer/timer.h" | 72 #include "base/timer/timer.h" |
| 72 #include "net/base/load_flags.h" | 73 #include "net/base/load_flags.h" |
| 73 #include "net/cert/cert_net_fetcher.h" | 74 #include "net/cert/cert_net_fetcher.h" |
| 74 #include "net/url_request/redirect_info.h" | 75 #include "net/url_request/redirect_info.h" |
| 75 #include "net/url_request/url_request_context.h" | 76 #include "net/url_request/url_request_context.h" |
| 76 | 77 |
| 77 // TODO(eroman): Add support for POST parameters. | 78 // TODO(eroman): Add support for POST parameters. |
| 78 // TODO(eroman): Add controls for bypassing the cache. | 79 // TODO(eroman): Add controls for bypassing the cache. |
| (...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 std::unique_ptr<AsyncCertNetFetcherImpl> impl_; | 785 std::unique_ptr<AsyncCertNetFetcherImpl> impl_; |
| 785 }; | 786 }; |
| 786 | 787 |
| 787 } // namespace | 788 } // namespace |
| 788 | 789 |
| 789 scoped_refptr<CertNetFetcher> CreateCertNetFetcher(URLRequestContext* context) { | 790 scoped_refptr<CertNetFetcher> CreateCertNetFetcher(URLRequestContext* context) { |
| 790 return make_scoped_refptr(new CertNetFetcherImpl(context)); | 791 return make_scoped_refptr(new CertNetFetcherImpl(context)); |
| 791 } | 792 } |
| 792 | 793 |
| 793 } // namespace net | 794 } // namespace net |
| OLD | NEW |