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> |
| 8 |
7 #include <vector> | 9 #include <vector> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 13 #include "base/command_line.h" |
12 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
13 #include "base/debug/leak_tracker.h" | 15 #include "base/debug/leak_tracker.h" |
14 #include "base/environment.h" | 16 #include "base/environment.h" |
15 #include "base/logging.h" | 17 #include "base/logging.h" |
| 18 #include "base/macros.h" |
16 #include "base/metrics/field_trial.h" | 19 #include "base/metrics/field_trial.h" |
17 #include "base/prefs/pref_service.h" | 20 #include "base/prefs/pref_service.h" |
18 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
19 #include "base/strings/string_number_conversions.h" | 22 #include "base/strings/string_number_conversions.h" |
20 #include "base/strings/string_piece.h" | 23 #include "base/strings/string_piece.h" |
21 #include "base/strings/string_split.h" | 24 #include "base/strings/string_split.h" |
22 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
23 #include "base/threading/sequenced_worker_pool.h" | 26 #include "base/threading/sequenced_worker_pool.h" |
24 #include "base/threading/thread.h" | 27 #include "base/threading/thread.h" |
25 #include "base/threading/worker_pool.h" | 28 #include "base/threading/worker_pool.h" |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 | 1010 |
1008 globals->system_http_network_session.reset( | 1011 globals->system_http_network_session.reset( |
1009 new net::HttpNetworkSession(system_params)); | 1012 new net::HttpNetworkSession(system_params)); |
1010 globals->system_http_transaction_factory.reset( | 1013 globals->system_http_transaction_factory.reset( |
1011 new net::HttpNetworkLayer(globals->system_http_network_session.get())); | 1014 new net::HttpNetworkLayer(globals->system_http_network_session.get())); |
1012 context->set_http_transaction_factory( | 1015 context->set_http_transaction_factory( |
1013 globals->system_http_transaction_factory.get()); | 1016 globals->system_http_transaction_factory.get()); |
1014 | 1017 |
1015 return context; | 1018 return context; |
1016 } | 1019 } |
OLD | NEW |