| 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/external_process_importer_client.h" | 5 #include "chrome/browser/importer/external_process_importer_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/importer/external_process_importer_host.h" | 10 #include "chrome/browser/importer/external_process_importer_host.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 if (cancelled_) | 278 if (cancelled_) |
| 279 return; | 279 return; |
| 280 | 280 |
| 281 favicons_.insert(favicons_.end(), favicons_group.begin(), | 281 favicons_.insert(favicons_.end(), favicons_group.begin(), |
| 282 favicons_group.end()); | 282 favicons_group.end()); |
| 283 if (favicons_.size() == total_favicons_count_) | 283 if (favicons_.size() == total_favicons_count_) |
| 284 bridge_->SetFavicons(favicons_); | 284 bridge_->SetFavicons(favicons_); |
| 285 } | 285 } |
| 286 | 286 |
| 287 void ExternalProcessImporterClient::OnPasswordFormImportReady( | 287 void ExternalProcessImporterClient::OnPasswordFormImportReady( |
| 288 const webkit_glue::PasswordForm& form) { | 288 const webkit::forms::PasswordForm& form) { |
| 289 if (cancelled_) | 289 if (cancelled_) |
| 290 return; | 290 return; |
| 291 | 291 |
| 292 bridge_->SetPasswordForm(form); | 292 bridge_->SetPasswordForm(form); |
| 293 } | 293 } |
| 294 | 294 |
| 295 void ExternalProcessImporterClient::OnKeywordsImportReady( | 295 void ExternalProcessImporterClient::OnKeywordsImportReady( |
| 296 const std::vector<TemplateURL>& template_urls, | 296 const std::vector<TemplateURL>& template_urls, |
| 297 int default_keyword_index, bool unique_on_host_and_path) { | 297 int default_keyword_index, bool unique_on_host_and_path) { |
| 298 if (cancelled_) | 298 if (cancelled_) |
| 299 return; | 299 return; |
| 300 | 300 |
| 301 std::vector<TemplateURL*> template_url_vec; | 301 std::vector<TemplateURL*> template_url_vec; |
| 302 template_url_vec.reserve(template_urls.size()); | 302 template_url_vec.reserve(template_urls.size()); |
| 303 std::vector<TemplateURL>::const_iterator iter; | 303 std::vector<TemplateURL>::const_iterator iter; |
| 304 for (iter = template_urls.begin(); | 304 for (iter = template_urls.begin(); |
| 305 iter != template_urls.end(); | 305 iter != template_urls.end(); |
| 306 ++iter) { | 306 ++iter) { |
| 307 template_url_vec.push_back(new TemplateURL(*iter)); | 307 template_url_vec.push_back(new TemplateURL(*iter)); |
| 308 } | 308 } |
| 309 bridge_->SetKeywords(template_url_vec, default_keyword_index, | 309 bridge_->SetKeywords(template_url_vec, default_keyword_index, |
| 310 unique_on_host_and_path); | 310 unique_on_host_and_path); |
| 311 } | 311 } |
| OLD | NEW |