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/importer/external_process_importer_bridge.h" | 5 #include "chrome/browser/importer/external_process_importer_bridge.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
119 | 119 |
120 Send(new ProfileImportProcessHostMsg_NotifyHistoryImportGroup( | 120 Send(new ProfileImportProcessHostMsg_NotifyHistoryImportGroup( |
121 row_group, visit_source)); | 121 row_group, visit_source)); |
122 rows_left -= end_group - it; | 122 rows_left -= end_group - it; |
123 it = end_group; | 123 it = end_group; |
124 } | 124 } |
125 DCHECK_EQ(0, rows_left); | 125 DCHECK_EQ(0, rows_left); |
126 } | 126 } |
127 | 127 |
128 void ExternalProcessImporterBridge::SetKeywords( | 128 void ExternalProcessImporterBridge::SetKeywords( |
129 const std::vector<TemplateURL*>& template_urls, | 129 const std::vector<importer::URLKeywordInfo>& url_keywords, |
gab
2013/06/27 22:07:29
#include "chrome/browser/importer/importer_data_ty
ananta
2013/06/27 22:29:55
Done.
| |
130 bool unique_on_host_and_path) { | 130 bool unique_on_host_and_path) { |
131 Send(new ProfileImportProcessHostMsg_NotifyKeywordsReady(template_urls, | 131 Send(new ProfileImportProcessHostMsg_NotifyKeywordsReady( |
132 unique_on_host_and_path)); | 132 url_keywords, unique_on_host_and_path)); |
133 STLDeleteContainerPointers(template_urls.begin(), template_urls.end()); | 133 } |
134 | |
135 void ExternalProcessImporterBridge::SetFirefoxSearchEnginesXMLData( | |
136 const std::vector<std::string>& search_engine_data) { | |
137 Send(new ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData( | |
138 search_engine_data)); | |
134 } | 139 } |
135 | 140 |
136 void ExternalProcessImporterBridge::SetPasswordForm( | 141 void ExternalProcessImporterBridge::SetPasswordForm( |
137 const content::PasswordForm& form) { | 142 const content::PasswordForm& form) { |
138 Send(new ProfileImportProcessHostMsg_NotifyPasswordFormReady(form)); | 143 Send(new ProfileImportProcessHostMsg_NotifyPasswordFormReady(form)); |
139 } | 144 } |
140 | 145 |
141 void ExternalProcessImporterBridge::NotifyStarted() { | 146 void ExternalProcessImporterBridge::NotifyStarted() { |
142 Send(new ProfileImportProcessHostMsg_Import_Started()); | 147 Send(new ProfileImportProcessHostMsg_Import_Started()); |
143 } | 148 } |
(...skipping 23 matching lines...) Expand all Loading... | |
167 task_runner_->PostTask( | 172 task_runner_->PostTask( |
168 FROM_HERE, | 173 FROM_HERE, |
169 base::Bind(&ExternalProcessImporterBridge::SendInternal, | 174 base::Bind(&ExternalProcessImporterBridge::SendInternal, |
170 this, message)); | 175 this, message)); |
171 } | 176 } |
172 | 177 |
173 void ExternalProcessImporterBridge::SendInternal(IPC::Message* message) { | 178 void ExternalProcessImporterBridge::SendInternal(IPC::Message* message) { |
174 DCHECK(task_runner_->RunsTasksOnCurrentThread()); | 179 DCHECK(task_runner_->RunsTasksOnCurrentThread()); |
175 sender_->Send(message); | 180 sender_->Send(message); |
176 } | 181 } |
OLD | NEW |