| 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 "ios/chrome/browser/ios_chrome_io_thread.h" | 5 #include "ios/chrome/browser/ios_chrome_io_thread.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
| 16 #include "base/debug/leak_tracker.h" | 16 #include "base/debug/leak_tracker.h" |
| 17 #include "base/environment.h" | 17 #include "base/environment.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/memory/ptr_util.h" | 20 #include "base/memory/ptr_util.h" |
| 21 #include "base/metrics/field_trial.h" | 21 #include "base/metrics/field_trial.h" |
| 22 #include "base/single_thread_task_runner.h" |
| 22 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
| 23 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
| 24 #include "base/strings/string_split.h" | 25 #include "base/strings/string_split.h" |
| 25 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
| 26 #include "base/threading/sequenced_worker_pool.h" | 27 #include "base/threading/sequenced_worker_pool.h" |
| 27 #include "base/threading/thread.h" | 28 #include "base/threading/thread.h" |
| 28 #include "base/time/time.h" | 29 #include "base/time/time.h" |
| 29 #include "base/trace_event/trace_event.h" | 30 #include "base/trace_event/trace_event.h" |
| 30 #include "components/net_log/chrome_net_log.h" | 31 #include "components/net_log/chrome_net_log.h" |
| 31 #include "components/network_session_configurator/network_session_configurator.h
" | 32 #include "components/network_session_configurator/network_session_configurator.h
" |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 | 569 |
| 569 globals->system_http_network_session.reset( | 570 globals->system_http_network_session.reset( |
| 570 new net::HttpNetworkSession(system_params)); | 571 new net::HttpNetworkSession(system_params)); |
| 571 globals->system_http_transaction_factory.reset( | 572 globals->system_http_transaction_factory.reset( |
| 572 new net::HttpNetworkLayer(globals->system_http_network_session.get())); | 573 new net::HttpNetworkLayer(globals->system_http_network_session.get())); |
| 573 context->set_http_transaction_factory( | 574 context->set_http_transaction_factory( |
| 574 globals->system_http_transaction_factory.get()); | 575 globals->system_http_transaction_factory.get()); |
| 575 | 576 |
| 576 return context; | 577 return context; |
| 577 } | 578 } |
| OLD | NEW |