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 <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/debug/leak_tracker.h" | 15 #include "base/debug/leak_tracker.h" |
16 #include "base/environment.h" | 16 #include "base/environment.h" |
17 #include "base/files/file_path.h" | 17 #include "base/files/file_path.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/metrics/histogram_macros.h" | 22 #include "base/metrics/histogram_macros.h" |
| 23 #include "base/single_thread_task_runner.h" |
23 #include "base/stl_util.h" | 24 #include "base/stl_util.h" |
24 #include "base/strings/string_number_conversions.h" | 25 #include "base/strings/string_number_conversions.h" |
25 #include "base/strings/string_piece.h" | 26 #include "base/strings/string_piece.h" |
26 #include "base/strings/string_split.h" | 27 #include "base/strings/string_split.h" |
27 #include "base/strings/string_util.h" | 28 #include "base/strings/string_util.h" |
28 #include "base/strings/utf_string_conversions.h" | 29 #include "base/strings/utf_string_conversions.h" |
29 #include "base/task_scheduler/post_task.h" | 30 #include "base/task_scheduler/post_task.h" |
30 #include "base/threading/thread.h" | 31 #include "base/threading/thread.h" |
31 #include "base/time/time.h" | 32 #include "base/time/time.h" |
32 #include "base/trace_event/trace_event.h" | 33 #include "base/trace_event/trace_event.h" |
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 | 1094 |
1094 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the | 1095 // TODO(rtenneti): We should probably use HttpServerPropertiesManager for the |
1095 // system URLRequestContext too. There's no reason this should be tied to a | 1096 // system URLRequestContext too. There's no reason this should be tied to a |
1096 // profile. | 1097 // profile. |
1097 return context; | 1098 return context; |
1098 } | 1099 } |
1099 | 1100 |
1100 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { | 1101 metrics::UpdateUsagePrefCallbackType IOThread::GetMetricsDataUseForwarder() { |
1101 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); | 1102 return base::Bind(&UpdateMetricsUsagePrefsOnUIThread); |
1102 } | 1103 } |
OLD | NEW |