OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/io_thread.h" | 5 #include "chrome/browser/io_thread.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/debug/leak_tracker.h" | 13 #include "base/debug/leak_tracker.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/prefs/pref_registry_simple.h" | 15 #include "base/prefs/pref_registry_simple.h" |
16 #include "base/prefs/pref_service.h" | 16 #include "base/prefs/pref_service.h" |
17 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
18 #include "base/string_split.h" | |
19 #include "base/string_util.h" | 18 #include "base/string_util.h" |
20 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/string_split.h" |
21 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
22 #include "base/threading/worker_pool.h" | 22 #include "base/threading/worker_pool.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
25 #include "chrome/browser/extensions/event_router_forwarder.h" | 25 #include "chrome/browser/extensions/event_router_forwarder.h" |
26 #include "chrome/browser/net/async_dns_field_trial.h" | 26 #include "chrome/browser/net/async_dns_field_trial.h" |
27 #include "chrome/browser/net/basic_http_user_agent_settings.h" | 27 #include "chrome/browser/net/basic_http_user_agent_settings.h" |
28 #include "chrome/browser/net/chrome_net_log.h" | 28 #include "chrome/browser/net/chrome_net_log.h" |
29 #include "chrome/browser/net/chrome_network_delegate.h" | 29 #include "chrome/browser/net/chrome_network_delegate.h" |
30 #include "chrome/browser/net/chrome_url_request_context.h" | 30 #include "chrome/browser/net/chrome_url_request_context.h" |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 globals_->system_request_context.reset( | 902 globals_->system_request_context.reset( |
903 ConstructSystemRequestContext(globals_, net_log_)); | 903 ConstructSystemRequestContext(globals_, net_log_)); |
904 | 904 |
905 sdch_manager_->set_sdch_fetcher( | 905 sdch_manager_->set_sdch_fetcher( |
906 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); | 906 new SdchDictionaryFetcher(system_url_request_context_getter_.get())); |
907 } | 907 } |
908 | 908 |
909 void IOThread::UpdateDnsClientEnabled() { | 909 void IOThread::UpdateDnsClientEnabled() { |
910 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_); | 910 globals()->host_resolver->SetDnsClientEnabled(*dns_client_enabled_); |
911 } | 911 } |
OLD | NEW |