OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Multiply-included message file, no traditonal include guard. | 5 // Multiply-included message file, no traditonal include guard. |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/common/common_param_traits_macros.h" | 12 #include "chrome/common/common_param_traits_macros.h" |
13 #include "chrome/common/importer/imported_bookmark_entry.h" | 13 #include "chrome/common/importer/imported_bookmark_entry.h" |
14 #include "chrome/common/importer/imported_favicon_usage.h" | 14 #include "chrome/common/importer/imported_favicon_usage.h" |
15 #include "chrome/common/importer/importer_autofill_form_data_entry.h" | |
15 #include "chrome/common/importer/importer_data_types.h" | 16 #include "chrome/common/importer/importer_data_types.h" |
16 #include "chrome/common/importer/importer_url_row.h" | 17 #include "chrome/common/importer/importer_url_row.h" |
17 #include "components/autofill/content/common/autofill_param_traits_macros.h" | 18 #include "components/autofill/content/common/autofill_param_traits_macros.h" |
18 #include "components/autofill/core/common/password_form.h" | 19 #include "components/autofill/core/common/password_form.h" |
19 #include "content/public/common/common_param_traits.h" | 20 #include "content/public/common/common_param_traits.h" |
20 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
21 #include "ipc/ipc_message_utils.h" | 22 #include "ipc/ipc_message_utils.h" |
22 | 23 |
23 #ifndef CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ | 24 #ifndef CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ |
24 #define CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ | 25 #define CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 } | 250 } |
250 }; // ParamTraits<importer::ImporterIE7PasswordInfo> | 251 }; // ParamTraits<importer::ImporterIE7PasswordInfo> |
251 #endif | 252 #endif |
252 | 253 |
253 } // namespace IPC | 254 } // namespace IPC |
254 | 255 |
255 #endif // CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ | 256 #endif // CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_MESSAGES_H_ |
256 | 257 |
257 #define IPC_MESSAGE_START ProfileImportMsgStart | 258 #define IPC_MESSAGE_START ProfileImportMsgStart |
258 | 259 |
260 IPC_STRUCT_TRAITS_BEGIN(ImporterAutofillFormDataEntry) | |
261 IPC_STRUCT_TRAITS_MEMBER(name) | |
262 IPC_STRUCT_TRAITS_MEMBER(value) | |
263 IPC_STRUCT_TRAITS_MEMBER(times_used) | |
264 IPC_STRUCT_TRAITS_MEMBER(first_used) | |
265 IPC_STRUCT_TRAITS_MEMBER(last_used) | |
266 IPC_STRUCT_TRAITS_END() | |
Ilya Sherman
2014/09/02 20:22:37
It looks like this should be defined slightly earl
Nikhil
2014/09/03 04:36:27
If I do that, then I get linker errors locally for
| |
267 | |
259 //----------------------------------------------------------------------------- | 268 //----------------------------------------------------------------------------- |
260 // ProfileImportProcess messages | 269 // ProfileImportProcess messages |
261 // These are messages sent from the browser to the profile import process. | 270 // These are messages sent from the browser to the profile import process. |
262 IPC_MESSAGE_CONTROL3(ProfileImportProcessMsg_StartImport, | 271 IPC_MESSAGE_CONTROL3(ProfileImportProcessMsg_StartImport, |
263 importer::SourceProfile, | 272 importer::SourceProfile, |
264 int /* Bitmask of items to import. */, | 273 int /* Bitmask of items to import. */, |
265 base::DictionaryValue /* Localized strings. */) | 274 base::DictionaryValue /* Localized strings. */) |
266 | 275 |
267 IPC_MESSAGE_CONTROL0(ProfileImportProcessMsg_CancelImport) | 276 IPC_MESSAGE_CONTROL0(ProfileImportProcessMsg_CancelImport) |
268 | 277 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady, | 324 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyPasswordFormReady, |
316 autofill::PasswordForm) | 325 autofill::PasswordForm) |
317 | 326 |
318 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady, | 327 IPC_MESSAGE_CONTROL2(ProfileImportProcessHostMsg_NotifyKeywordsReady, |
319 std::vector<importer::URLKeywordInfo>, // url_keywords | 328 std::vector<importer::URLKeywordInfo>, // url_keywords |
320 bool /* unique on host and path */) | 329 bool /* unique on host and path */) |
321 | 330 |
322 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData, | 331 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyFirefoxSearchEngData, |
323 std::vector<std::string>) // search_engine_data | 332 std::vector<std::string>) // search_engine_data |
324 | 333 |
334 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_AutofillFormDataImportStart, | |
335 int /* total number of entries to be imported */) | |
336 | |
337 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_AutofillFormDataImportGroup, | |
338 std::vector<ImporterAutofillFormDataEntry>) | |
339 | |
325 #if defined(OS_WIN) | 340 #if defined(OS_WIN) |
326 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyIE7PasswordInfo, | 341 IPC_MESSAGE_CONTROL1(ProfileImportProcessHostMsg_NotifyIE7PasswordInfo, |
327 importer::ImporterIE7PasswordInfo) // password_info | 342 importer::ImporterIE7PasswordInfo) // password_info |
328 #endif | 343 #endif |
OLD | NEW |