Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: chrome/browser/importer/external_process_importer_client.cc

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/external_process_importer_client.h ('k') | chrome/browser/importer/firefox2_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698