| 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 #ifndef CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 6 #define CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace content{ | 31 namespace content{ |
| 32 class UtilityProcessHost; | 32 class UtilityProcessHost; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace importer { | 35 namespace importer { |
| 36 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
| 37 struct ImporterIE7PasswordInfo; | 37 struct ImporterIE7PasswordInfo; |
| 38 #endif | 38 #endif |
| 39 struct ImporterAutofillFormDataEntry; | 39 struct ImporterAutofillFormDataEntry; |
| 40 struct URLKeywordInfo; | 40 struct SearchEngineInfo; |
| 41 } | 41 } |
| 42 | 42 |
| 43 // This class is the client for the out of process profile importing. It | 43 // This class is the client for the out of process profile importing. It |
| 44 // collects notifications from this process host and feeds data back to the | 44 // collects notifications from this process host and feeds data back to the |
| 45 // importer host, who actually does the writing. | 45 // importer host, who actually does the writing. |
| 46 class ExternalProcessImporterClient : public content::UtilityProcessHostClient { | 46 class ExternalProcessImporterClient : public content::UtilityProcessHostClient { |
| 47 public: | 47 public: |
| 48 ExternalProcessImporterClient( | 48 ExternalProcessImporterClient( |
| 49 base::WeakPtr<ExternalProcessImporterHost> importer_host, | 49 base::WeakPtr<ExternalProcessImporterHost> importer_host, |
| 50 const importer::SourceProfile& source_profile, | 50 const importer::SourceProfile& source_profile, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 73 void OnHomePageImportReady(const GURL& home_page); | 73 void OnHomePageImportReady(const GURL& home_page); |
| 74 void OnBookmarksImportStart(const base::string16& first_folder_name, | 74 void OnBookmarksImportStart(const base::string16& first_folder_name, |
| 75 size_t total_bookmarks_count); | 75 size_t total_bookmarks_count); |
| 76 void OnBookmarksImportGroup( | 76 void OnBookmarksImportGroup( |
| 77 const std::vector<ImportedBookmarkEntry>& bookmarks_group); | 77 const std::vector<ImportedBookmarkEntry>& bookmarks_group); |
| 78 void OnFaviconsImportStart(size_t total_favicons_count); | 78 void OnFaviconsImportStart(size_t total_favicons_count); |
| 79 void OnFaviconsImportGroup( | 79 void OnFaviconsImportGroup( |
| 80 const std::vector<ImportedFaviconUsage>& favicons_group); | 80 const std::vector<ImportedFaviconUsage>& favicons_group); |
| 81 void OnPasswordFormImportReady(const autofill::PasswordForm& form); | 81 void OnPasswordFormImportReady(const autofill::PasswordForm& form); |
| 82 void OnKeywordsImportReady( | 82 void OnKeywordsImportReady( |
| 83 const std::vector<importer::URLKeywordInfo>& url_keywords, | 83 const std::vector<importer::SearchEngineInfo>& search_engines, |
| 84 bool unique_on_host_and_path); | 84 bool unique_on_host_and_path); |
| 85 void OnFirefoxSearchEngineDataReceived( | 85 void OnFirefoxSearchEngineDataReceived( |
| 86 const std::vector<std::string> search_engine_data); | 86 const std::vector<std::string> search_engine_data); |
| 87 void OnAutofillFormDataImportStart( | 87 void OnAutofillFormDataImportStart( |
| 88 size_t total_autofill_form_data_entry_count); | 88 size_t total_autofill_form_data_entry_count); |
| 89 void OnAutofillFormDataImportGroup(const std::vector< | 89 void OnAutofillFormDataImportGroup(const std::vector< |
| 90 ImporterAutofillFormDataEntry>& autofill_form_data_entry_group); | 90 ImporterAutofillFormDataEntry>& autofill_form_data_entry_group); |
| 91 #if defined(OS_WIN) | 91 #if defined(OS_WIN) |
| 92 void OnIE7PasswordReceived( | 92 void OnIE7PasswordReceived( |
| 93 const importer::ImporterIE7PasswordInfo& importer_password_info); | 93 const importer::ImporterIE7PasswordInfo& importer_password_info); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // ProfileWriter. | 153 // ProfileWriter. |
| 154 scoped_refptr<InProcessImporterBridge> bridge_; | 154 scoped_refptr<InProcessImporterBridge> bridge_; |
| 155 | 155 |
| 156 // True if import process has been cancelled. | 156 // True if import process has been cancelled. |
| 157 bool cancelled_; | 157 bool cancelled_; |
| 158 | 158 |
| 159 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); | 159 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 162 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
| OLD | NEW |