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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "chrome/browser/history/history_types.h" | 15 #include "chrome/browser/history/history_types.h" |
16 #include "chrome/common/importer/importer_data_types.h" | 16 #include "chrome/common/importer/importer_data_types.h" |
17 #include "chrome/common/importer/importer_url_row.h" | 17 #include "chrome/common/importer/importer_url_row.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/utility_process_host_client.h" | 19 #include "content/public/browser/utility_process_host_client.h" |
20 | 20 |
21 class ExternalProcessImporterHost; | 21 class ExternalProcessImporterHost; |
22 struct ImportedBookmarkEntry; | 22 struct ImportedBookmarkEntry; |
23 struct ImportedFaviconUsage; | 23 struct ImportedFaviconUsage; |
24 class InProcessImporterBridge; | 24 class InProcessImporterBridge; |
25 | 25 |
26 namespace content { | 26 namespace autofill { |
27 struct PasswordForm; | 27 struct PasswordForm; |
| 28 } |
| 29 |
| 30 namespace content{ |
28 class UtilityProcessHost; | 31 class UtilityProcessHost; |
29 } | 32 } |
30 | 33 |
31 namespace importer { | 34 namespace importer { |
32 #if defined(OS_WIN) | 35 #if defined(OS_WIN) |
33 struct ImporterIE7PasswordInfo; | 36 struct ImporterIE7PasswordInfo; |
34 #endif | 37 #endif |
35 struct URLKeywordInfo; | 38 struct URLKeywordInfo; |
36 } | 39 } |
37 | 40 |
(...skipping 27 matching lines...) Expand all Loading... |
65 const std::vector<ImporterURLRow>& history_rows_group, | 68 const std::vector<ImporterURLRow>& history_rows_group, |
66 int visit_source); | 69 int visit_source); |
67 void OnHomePageImportReady(const GURL& home_page); | 70 void OnHomePageImportReady(const GURL& home_page); |
68 void OnBookmarksImportStart(const string16& first_folder_name, | 71 void OnBookmarksImportStart(const string16& first_folder_name, |
69 size_t total_bookmarks_count); | 72 size_t total_bookmarks_count); |
70 void OnBookmarksImportGroup( | 73 void OnBookmarksImportGroup( |
71 const std::vector<ImportedBookmarkEntry>& bookmarks_group); | 74 const std::vector<ImportedBookmarkEntry>& bookmarks_group); |
72 void OnFaviconsImportStart(size_t total_favicons_count); | 75 void OnFaviconsImportStart(size_t total_favicons_count); |
73 void OnFaviconsImportGroup( | 76 void OnFaviconsImportGroup( |
74 const std::vector<ImportedFaviconUsage>& favicons_group); | 77 const std::vector<ImportedFaviconUsage>& favicons_group); |
75 void OnPasswordFormImportReady(const content::PasswordForm& form); | 78 void OnPasswordFormImportReady(const autofill::PasswordForm& form); |
76 void OnKeywordsImportReady( | 79 void OnKeywordsImportReady( |
77 const std::vector<importer::URLKeywordInfo>& url_keywords, | 80 const std::vector<importer::URLKeywordInfo>& url_keywords, |
78 bool unique_on_host_and_path); | 81 bool unique_on_host_and_path); |
79 void OnFirefoxSearchEngineDataReceived( | 82 void OnFirefoxSearchEngineDataReceived( |
80 const std::vector<std::string> search_engine_data); | 83 const std::vector<std::string> search_engine_data); |
81 #if defined(OS_WIN) | 84 #if defined(OS_WIN) |
82 void OnIE7PasswordReceived( | 85 void OnIE7PasswordReceived( |
83 const importer::ImporterIE7PasswordInfo& importer_password_info); | 86 const importer::ImporterIE7PasswordInfo& importer_password_info); |
84 #endif | 87 #endif |
85 | 88 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // ProfileWriter. | 140 // ProfileWriter. |
138 scoped_refptr<InProcessImporterBridge> bridge_; | 141 scoped_refptr<InProcessImporterBridge> bridge_; |
139 | 142 |
140 // True if import process has been cancelled. | 143 // True if import process has been cancelled. |
141 bool cancelled_; | 144 bool cancelled_; |
142 | 145 |
143 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); | 146 DISALLOW_COPY_AND_ASSIGN(ExternalProcessImporterClient); |
144 }; | 147 }; |
145 | 148 |
146 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ | 149 #endif // CHROME_BROWSER_IMPORTER_EXTERNAL_PROCESS_IMPORTER_CLIENT_H_ |
OLD | NEW |