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

Side by Side Diff: chrome/browser/importer/importer_messages_internal.h

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

Powered by Google App Engine
This is Rietveld 408576698