OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/importer/in_process_importer_bridge.h" | 5 #include "chrome/browser/importer/in_process_importer_bridge.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/importer/importer_host.h" | 9 #include "chrome/browser/importer/importer_host.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
12 #include "webkit/glue/password_form.h" | 12 #include "webkit/glue/password_form.h" |
13 | 13 |
14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
15 #include "chrome/browser/password_manager/ie7_password.h" | 15 #include "chrome/browser/password_manager/ie7_password.h" |
16 #endif | 16 #endif |
17 | 17 |
| 18 using content::BrowserThread; |
| 19 |
18 InProcessImporterBridge::InProcessImporterBridge(ProfileWriter* writer, | 20 InProcessImporterBridge::InProcessImporterBridge(ProfileWriter* writer, |
19 ImporterHost* host) | 21 ImporterHost* host) |
20 : writer_(writer), | 22 : writer_(writer), |
21 host_(host) { | 23 host_(host) { |
22 } | 24 } |
23 | 25 |
24 void InProcessImporterBridge::AddBookmarks( | 26 void InProcessImporterBridge::AddBookmarks( |
25 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, | 27 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks, |
26 const string16& first_folder_name) { | 28 const string16& first_folder_name) { |
27 BrowserThread::PostTask( | 29 BrowserThread::PostTask( |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 BrowserThread::PostTask( | 102 BrowserThread::PostTask( |
101 BrowserThread::UI, FROM_HERE, | 103 BrowserThread::UI, FROM_HERE, |
102 base::Bind(&ImporterHost::NotifyImportEnded, host_)); | 104 base::Bind(&ImporterHost::NotifyImportEnded, host_)); |
103 } | 105 } |
104 | 106 |
105 string16 InProcessImporterBridge::GetLocalizedString(int message_id) { | 107 string16 InProcessImporterBridge::GetLocalizedString(int message_id) { |
106 return l10n_util::GetStringUTF16(message_id); | 108 return l10n_util::GetStringUTF16(message_id); |
107 } | 109 } |
108 | 110 |
109 InProcessImporterBridge::~InProcessImporterBridge() {} | 111 InProcessImporterBridge::~InProcessImporterBridge() {} |
OLD | NEW |