OLD | NEW |
| (Empty) |
1 // Copyright (c) 2010 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 #include <string> | |
6 #include <vector> | |
7 | |
8 #include "chrome/browser/history/history_types.h" | |
9 #include "chrome/browser/importer/importer_data_types.h" | |
10 #include "ipc/ipc_message_macros.h" | |
11 #include "webkit/glue/password_form.h" | |
12 | |
13 #define IPC_MESSAGE_START ProfileImportMsgStart | |
14 | |
15 //----------------------------------------------------------------------------- | |
16 // ProfileImportProcess messages | |
17 // These are messages sent from the browser to the profile import process. | |
18 IPC_MESSAGE_CONTROL4(ProfileImportProcessMsg_StartImport, | |
19 importer::ProfileInfo /* ProfileInfo struct */, | |
20 int /* bitmask of items to import */, | |
21 DictionaryValue /* localized strings */, | |
22 bool /* import to bookmark bar */) | |
23 | |
24 IPC_MESSAGE_CONTROL0(ProfileImportProcessMsg_CancelImport) | |
25 | |
26 IPC_MESSAGE_CONTROL1(ProfileImportProcessMsg_ReportImportItemFinished, | |
27 int /* ImportItem */) | |
28 | |
29 //--------------------------------------------------------------------------- | |
30 // ProfileImportProcessHost messages | |
31 // These are messages sent from the profile import process to the browser. | |
32 // These messages send information about the status of the import and | |
33 // individual import tasks. | |
34 IPC_MESSAGE_CONTROL0(ProfileImportProcessHostMsg_Import_Started) | |
35 | |
36 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_Import_Finished, | |
37 bool /* was import successful? */, | |
38 std::string /* error message, if any */) | |
39 | |
40 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_ImportItem_Started, | |
41 int /* ImportItem */) | |
42 | |
43 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_ImportItem_Finished, | |
44 int /* ImportItem */) | |
45 | |
46 // These messages send data from the external importer process back to | |
47 // the process host so it can be written to the profile. | |
48 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyHistoryImportStart, | |
49 int /* total number of history::URLRow items */) | |
50 | |
51 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyHistoryImportGroup, | |
52 std::vector<history::URLRow>, | |
53 int /* the source of URLs as in history::VisitSource.*/ | |
54 /* To simplify IPC call, pass as an integer */) | |
55 | |
56 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyHomePageImportReady, | |
57 GURL /* GURL of home page */) | |
58 | |
59 IPC_MESSAGE_CONTROL3(ProfileImportProcessHostMsg_NotifyBookmarksImportStart, | |
60 std::wstring /* first folder name */, | |
61 int /* options */, | |
62 int /* total number of bookmarks */) | |
63 | |
64 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyBookmarksImportGroup, | |
65 std::vector<ProfileWriter::BookmarkEntry>) | |
66 | |
67 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFavIconsImportStart, | |
68 int /* total number of FavIcons */) | |
69 | |
70 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFavIconsImportGroup, | |
71 std::vector<history::ImportedFavIconUsage> ) | |
72 | |
73 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady, | |
74 webkit_glue::PasswordForm ) | |
75 | |
76 IPC_MESSAGE_CONTROL3(ProfileImportProcessHostMsg_NotifyKeywordsReady, | |
77 std::vector<TemplateURL>, | |
78 int, /* default keyword index */ | |
79 bool /* unique on host and path */) | |
OLD | NEW |