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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void OnHistoryImportGroup(const history::URLRows& history_rows_group, | 58 void OnHistoryImportGroup(const history::URLRows& history_rows_group, |
59 int visit_source); | 59 int visit_source); |
60 void OnHomePageImportReady(const GURL& home_page); | 60 void OnHomePageImportReady(const GURL& home_page); |
61 void OnBookmarksImportStart(const string16& first_folder_name, | 61 void OnBookmarksImportStart(const string16& first_folder_name, |
62 size_t total_bookmarks_count); | 62 size_t total_bookmarks_count); |
63 void OnBookmarksImportGroup( | 63 void OnBookmarksImportGroup( |
64 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks_group); | 64 const std::vector<ProfileWriter::BookmarkEntry>& bookmarks_group); |
65 void OnFaviconsImportStart(size_t total_favicons_count); | 65 void OnFaviconsImportStart(size_t total_favicons_count); |
66 void OnFaviconsImportGroup( | 66 void OnFaviconsImportGroup( |
67 const std::vector<history::ImportedFaviconUsage>& favicons_group); | 67 const std::vector<history::ImportedFaviconUsage>& favicons_group); |
68 void OnPasswordFormImportReady(const webkit::forms::PasswordForm& form); | 68 void OnPasswordFormImportReady(const content::PasswordForm& form); |
69 // WARNING: This function takes ownership of (and deletes) the pointers in | 69 // WARNING: This function takes ownership of (and deletes) the pointers in |
70 // |template_urls|! | 70 // |template_urls|! |
71 void OnKeywordsImportReady(const std::vector<TemplateURL*>& template_urls, | 71 void OnKeywordsImportReady(const std::vector<TemplateURL*>& template_urls, |
72 bool unique_on_host_and_path); | 72 bool unique_on_host_and_path); |
73 | 73 |
74 protected: | 74 protected: |
75 virtual ~ExternalProcessImporterClient(); | 75 virtual ~ExternalProcessImporterClient(); |
76 | 76 |
77 private: | 77 private: |
78 // Notifies the importerhost that import has finished, and calls Release(). | 78 // Notifies the importerhost that import has finished, and calls Release(). |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // ProfileWriter. | 125 // ProfileWriter. |
126 scoped_refptr<InProcessImporterBridge> bridge_; | 126 scoped_refptr<InProcessImporterBridge> bridge_; |
127 | 127 |
128 // True if import process has been cancelled. | 128 // True if import process has been cancelled. |
129 bool cancelled_; | 129 bool cancelled_; |
130 | 130 |
131 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); | 131 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); |
132 }; | 132 }; |
133 | 133 |
134 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 134 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
OLD | NEW |