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/utility/importer/external_process_importer_bridge.h" | 5 #include "chrome/utility/importer/external_process_importer_bridge.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/dump_without_crashing.h" | 8 #include "base/debug/dump_without_crashing.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "build/build_config.h" |
14 #include "chrome/common/importer/imported_bookmark_entry.h" | 15 #include "chrome/common/importer/imported_bookmark_entry.h" |
15 #include "chrome/common/importer/importer_data_types.h" | 16 #include "chrome/common/importer/importer_data_types.h" |
16 #include "chrome/common/importer/profile_import_process_messages.h" | 17 #include "chrome/common/importer/profile_import_process_messages.h" |
17 #include "components/autofill/core/common/password_form.h" | 18 #include "components/autofill/core/common/password_form.h" |
18 #include "ipc/ipc_sender.h" | 19 #include "ipc/ipc_sender.h" |
19 | 20 |
20 namespace { | 21 namespace { |
21 | 22 |
22 // Rather than sending all import items over IPC at once we chunk them into | 23 // Rather than sending all import items over IPC at once we chunk them into |
23 // separate requests. This avoids the case of a large import causing | 24 // separate requests. This avoids the case of a large import causing |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 task_runner_->PostTask( | 200 task_runner_->PostTask( |
200 FROM_HERE, | 201 FROM_HERE, |
201 base::Bind(&ExternalProcessImporterBridge::SendInternal, | 202 base::Bind(&ExternalProcessImporterBridge::SendInternal, |
202 this, message)); | 203 this, message)); |
203 } | 204 } |
204 | 205 |
205 void ExternalProcessImporterBridge::SendInternal(IPC::Message* message) { | 206 void ExternalProcessImporterBridge::SendInternal(IPC::Message* message) { |
206 DCHECK(task_runner_->RunsTasksOnCurrentThread()); | 207 DCHECK(task_runner_->RunsTasksOnCurrentThread()); |
207 sender_->Send(message); | 208 sender_->Send(message); |
208 } | 209 } |
OLD | NEW |