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

Side by Side Diff: chrome/utility/importer/external_process_importer_bridge.h

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (simplify Read method) Created 6 years, 3 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 #ifndef CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 5 #ifndef CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 6 #define CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void SetKeywords( 66 virtual void SetKeywords(
67 const std::vector<importer::URLKeywordInfo>& url_keywords, 67 const std::vector<importer::URLKeywordInfo>& url_keywords,
68 bool unique_on_host_and_path) OVERRIDE; 68 bool unique_on_host_and_path) OVERRIDE;
69 69
70 virtual void SetFirefoxSearchEnginesXMLData( 70 virtual void SetFirefoxSearchEnginesXMLData(
71 const std::vector<std::string>& seach_engine_data) OVERRIDE; 71 const std::vector<std::string>& seach_engine_data) OVERRIDE;
72 72
73 virtual void SetPasswordForm( 73 virtual void SetPasswordForm(
74 const autofill::PasswordForm& form) OVERRIDE; 74 const autofill::PasswordForm& form) OVERRIDE;
75 75
76 virtual void SetAutofillFormData(
77 const std::vector<ImporterAutofillFormDataEntry>& entries) OVERRIDE;
78
76 virtual void NotifyStarted() OVERRIDE; 79 virtual void NotifyStarted() OVERRIDE;
77 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE; 80 virtual void NotifyItemStarted(importer::ImportItem item) OVERRIDE;
78 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE; 81 virtual void NotifyItemEnded(importer::ImportItem item) OVERRIDE;
79 virtual void NotifyEnded() OVERRIDE; 82 virtual void NotifyEnded() OVERRIDE;
80 83
81 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE; 84 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
82 // End ImporterBridge implementation. 85 // End ImporterBridge implementation.
83 86
84 private: 87 private:
85 virtual ~ExternalProcessImporterBridge(); 88 virtual ~ExternalProcessImporterBridge();
86 89
87 void Send(IPC::Message* message); 90 void Send(IPC::Message* message);
88 void SendInternal(IPC::Message* message); 91 void SendInternal(IPC::Message* message);
89 92
90 // Holds strings needed by the external importer because the resource 93 // Holds strings needed by the external importer because the resource
91 // bundle isn't available to the external process. 94 // bundle isn't available to the external process.
92 scoped_ptr<base::DictionaryValue> localized_strings_; 95 scoped_ptr<base::DictionaryValue> localized_strings_;
93 96
94 IPC::Sender* sender_; 97 IPC::Sender* sender_;
95 scoped_refptr<base::TaskRunner> task_runner_; 98 scoped_refptr<base::TaskRunner> task_runner_;
96 99
97 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge); 100 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterBridge);
98 }; 101 };
99 102
100 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_ 103 #endif // CHROME_UTILITY_IMPORTER_EXTERNAL_PROCESS_IMPORTER_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/test/data/firefox_profile/formhistory.sqlite ('k') | chrome/utility/importer/external_process_importer_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698