OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/safe_json/safe_json_parser_impl.h" | 5 #include "components/safe_json/safe_json_parser_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/sequenced_task_runner.h" | 9 #include "base/sequenced_task_runner.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "base/thread_task_runner_handle.h" | |
12 #include "base/threading/sequenced_task_runner_handle.h" | 11 #include "base/threading/sequenced_task_runner_handle.h" |
| 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "base/tuple.h" | 13 #include "base/tuple.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/utility_process_host.h" | 16 #include "content/public/browser/utility_process_host.h" |
17 #include "content/public/common/service_registry.h" | 17 #include "content/public/common/service_registry.h" |
18 #include "grit/components_strings.h" | 18 #include "grit/components_strings.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 using content::UtilityProcessHost; | 22 using content::UtilityProcessHost; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 void SafeJsonParserImpl::Start() { | 113 void SafeJsonParserImpl::Start() { |
114 caller_task_runner_ = base::SequencedTaskRunnerHandle::Get(); | 114 caller_task_runner_ = base::SequencedTaskRunnerHandle::Get(); |
115 | 115 |
116 BrowserThread::PostTask( | 116 BrowserThread::PostTask( |
117 BrowserThread::IO, FROM_HERE, | 117 BrowserThread::IO, FROM_HERE, |
118 base::Bind(&SafeJsonParserImpl::StartWorkOnIOThread, this)); | 118 base::Bind(&SafeJsonParserImpl::StartWorkOnIOThread, this)); |
119 } | 119 } |
120 | 120 |
121 } // namespace safe_json | 121 } // namespace safe_json |
OLD | NEW |