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/profile_import_handler.h" | 5 #include "chrome/utility/profile_import_handler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "chrome/browser/importer/external_process_importer_bridge.h" | |
12 #include "chrome/browser/importer/importer.h" | |
13 #include "chrome/browser/importer/importer_creator.h" | |
14 #include "chrome/common/importer/profile_import_process_messages.h" | 11 #include "chrome/common/importer/profile_import_process_messages.h" |
| 12 #include "chrome/utility/importer/external_process_importer_bridge.h" |
| 13 #include "chrome/utility/importer/importer.h" |
| 14 #include "chrome/utility/importer/importer_creator.h" |
15 #include "content/public/utility/utility_thread.h" | 15 #include "content/public/utility/utility_thread.h" |
16 | 16 |
17 namespace chrome { | 17 namespace chrome { |
18 | 18 |
19 ProfileImportHandler::ProfileImportHandler() : items_to_import_(0) {} | 19 ProfileImportHandler::ProfileImportHandler() : items_to_import_(0) {} |
20 | 20 |
21 ProfileImportHandler::~ProfileImportHandler() {} | 21 ProfileImportHandler::~ProfileImportHandler() {} |
22 | 22 |
23 bool ProfileImportHandler::OnMessageReceived(const IPC::Message& message) { | 23 bool ProfileImportHandler::OnMessageReceived(const IPC::Message& message) { |
24 bool handled = true; | 24 bool handled = true; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 import_thread_.reset(); | 83 import_thread_.reset(); |
84 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); | 84 content::UtilityThread::Get()->ReleaseProcessIfNeeded(); |
85 } | 85 } |
86 | 86 |
87 // static | 87 // static |
88 bool ProfileImportHandler::Send(IPC::Message* message) { | 88 bool ProfileImportHandler::Send(IPC::Message* message) { |
89 return content::UtilityThread::Get()->Send(message); | 89 return content::UtilityThread::Get()->Send(message); |
90 } | 90 } |
91 | 91 |
92 } // namespace chrome | 92 } // namespace chrome |
OLD | NEW |