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

Side by Side Diff: chrome/common/importer/profile_import.mojom

Issue 2470283002: Convert profile import IPCs to Mojo (Closed)
Patch Set: Use enum instead of int in mojom where possible Created 4 years, 1 month 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module chrome.mojom;
6
7 import "components/autofill/content/common/autofill_types.mojom";
8 import "mojo/common/common_custom_types.mojom";
9 import "url/mojo/url.mojom";
10
11 [Native]
12 struct ImportedBookmarkEntry;
13
14 [Native]
15 struct ImporterAutofillFormDataEntry;
16
17 [Native]
18 struct SearchEngineInfo;
19
20 [Native]
21 struct ImporterURLRow;
22
23 [Native]
24 struct SourceProfile;
25
26 [Native]
27 struct FaviconUsageDataList;
28
29 [Native]
30 struct ImporterIE7PasswordInfo;
31
32 [Native]
33 enum ImportItem;
34
35 interface ProfileImportObserver {
36 OnImportStart();
37 OnImportFinished(bool succeeded, string error_msg);
38 OnImportItemStart(ImportItem item);
39 OnImportItemFinished(ImportItem item);
40 OnHistoryImportStart(int32 total_history_rows_count);
41 OnHistoryImportGroup(
42 array<ImporterURLRow> history_rows_group,
43 int32 visit_source);
44 OnHomePageImportReady(url.mojom.Url home_page);
45 OnBookmarksImportStart(
46 mojo.common.mojom.String16 first_folder_name,
47 int32 total_bookmarks_count);
48 OnBookmarksImportGroup(array<ImportedBookmarkEntry> bookmarks_group);
49 OnFaviconsImportStart(int32 total_favicons_count);
50 OnFaviconsImportGroup(FaviconUsageDataList favicons_group);
51 OnPasswordFormImportReady(autofill.mojom.PasswordForm form);
52 OnKeywordsImportReady(
53 array<SearchEngineInfo> search_engines,
54 bool unique_on_host_and_path);
55 OnFirefoxSearchEngineDataReceived(array<string> search_engine_data);
56 OnAutofillFormDataImportStart(int32 total_autofill_form_data_entry_count);
57 OnAutofillFormDataImportGroup(
58 array<ImporterAutofillFormDataEntry> autofill_form_data_entry_group);
59 // Windows only:
60 OnIE7PasswordReceived(ImporterIE7PasswordInfo importer_password_info);
61 };
62
63 interface ProfileImport {
64 // Start the importer. |items| is a bitmask of importer::ImportItem of items
65 // to import.
66 StartImport(
67 SourceProfile source_profile,
68 uint16 items,
69 mojo.common.mojom.DictionaryValue localized_strings,
70 ProfileImportObserver observer);
71
72 // Stop the importer.
73 CancelImport();
74
75 // Tell the importer that we're done with one item.
76 ReportImportItemFinished(ImportItem item);
77 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698