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

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

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 months 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
OLDNEW
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/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 "chrome/browser/search_engines/template_url.h" 10 #include "chrome/browser/search_engines/template_url.h"
11 #include "content/public/browser/browser_thread.h" 11 #include "content/public/browser/browser_thread.h"
12 #include "content/public/common/password_form.h"
12 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
13 #include "webkit/forms/password_form.h"
14 14
15 #if defined(OS_WIN) 15 #if defined(OS_WIN)
16 #include "chrome/browser/password_manager/ie7_password.h" 16 #include "chrome/browser/password_manager/ie7_password.h"
17 #endif 17 #endif
18 18
19 #include <iterator> 19 #include <iterator>
20 20
21 using content::BrowserThread; 21 using content::BrowserThread;
22 22
23 InProcessImporterBridge::InProcessImporterBridge(ProfileWriter* writer, 23 InProcessImporterBridge::InProcessImporterBridge(ProfileWriter* writer,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 bool unique_on_host_and_path) { 70 bool unique_on_host_and_path) {
71 ScopedVector<TemplateURL> owned_template_urls; 71 ScopedVector<TemplateURL> owned_template_urls;
72 std::copy(template_urls.begin(), template_urls.end(), 72 std::copy(template_urls.begin(), template_urls.end(),
73 std::back_inserter(owned_template_urls)); 73 std::back_inserter(owned_template_urls));
74 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, 74 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
75 base::Bind(&ProfileWriter::AddKeywords, writer_, 75 base::Bind(&ProfileWriter::AddKeywords, writer_,
76 base::Passed(&owned_template_urls), unique_on_host_and_path)); 76 base::Passed(&owned_template_urls), unique_on_host_and_path));
77 } 77 }
78 78
79 void InProcessImporterBridge::SetPasswordForm( 79 void InProcessImporterBridge::SetPasswordForm(
80 const webkit::forms::PasswordForm& form) { 80 const content::PasswordForm& form) {
81 BrowserThread::PostTask( 81 BrowserThread::PostTask(
82 BrowserThread::UI, FROM_HERE, 82 BrowserThread::UI, FROM_HERE,
83 base::Bind(&ProfileWriter::AddPasswordForm, writer_, form)); 83 base::Bind(&ProfileWriter::AddPasswordForm, writer_, form));
84 } 84 }
85 85
86 void InProcessImporterBridge::NotifyStarted() { 86 void InProcessImporterBridge::NotifyStarted() {
87 BrowserThread::PostTask( 87 BrowserThread::PostTask(
88 BrowserThread::UI, FROM_HERE, 88 BrowserThread::UI, FROM_HERE,
89 base::Bind(&ImporterHost::NotifyImportStarted, host_)); 89 base::Bind(&ImporterHost::NotifyImportStarted, host_));
90 } 90 }
(...skipping 14 matching lines...) Expand all
105 BrowserThread::PostTask( 105 BrowserThread::PostTask(
106 BrowserThread::UI, FROM_HERE, 106 BrowserThread::UI, FROM_HERE,
107 base::Bind(&ImporterHost::NotifyImportEnded, host_)); 107 base::Bind(&ImporterHost::NotifyImportEnded, host_));
108 } 108 }
109 109
110 string16 InProcessImporterBridge::GetLocalizedString(int message_id) { 110 string16 InProcessImporterBridge::GetLocalizedString(int message_id) {
111 return l10n_util::GetStringUTF16(message_id); 111 return l10n_util::GetStringUTF16(message_id);
112 } 112 }
113 113
114 InProcessImporterBridge::~InProcessImporterBridge() {} 114 InProcessImporterBridge::~InProcessImporterBridge() {}
OLDNEW
« no previous file with comments | « chrome/browser/importer/in_process_importer_bridge.h ('k') | chrome/browser/importer/nss_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698