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

Side by Side Diff: chrome/common/importer/profile_import_process_param_traits_macros.h

Issue 1465853002: Implement support for importing favorites from Edge on Windows 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing include files Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Singly or Multiply-included shared traits file depending on circumstances. 5 // Singly or Multiply-included shared traits file depending on circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message 6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file. 7 // file.
8 #ifndef CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_ 8 #ifndef CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_
9 #define CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_ 9 #define CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/common/common_param_traits_macros.h" 17 #include "chrome/common/common_param_traits_macros.h"
18 #include "chrome/common/importer/imported_bookmark_entry.h" 18 #include "chrome/common/importer/imported_bookmark_entry.h"
19 #include "chrome/common/importer/importer_autofill_form_data_entry.h" 19 #include "chrome/common/importer/importer_autofill_form_data_entry.h"
20 #include "chrome/common/importer/importer_data_types.h" 20 #include "chrome/common/importer/importer_data_types.h"
21 #include "chrome/common/importer/importer_url_row.h" 21 #include "chrome/common/importer/importer_url_row.h"
22 #include "components/autofill/content/common/autofill_param_traits_macros.h" 22 #include "components/autofill/content/common/autofill_param_traits_macros.h"
23 #include "components/autofill/core/common/password_form.h" 23 #include "components/autofill/core/common/password_form.h"
24 #include "components/favicon_base/favicon_usage_data.h" 24 #include "components/favicon_base/favicon_usage_data.h"
25 #include "content/public/common/common_param_traits.h" 25 #include "content/public/common/common_param_traits.h"
26 #include "ipc/ipc_message_macros.h" 26 #include "ipc/ipc_message_macros.h"
27 27
28 #if defined(OS_WIN)
29 IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImporterType,
30 importer::TYPE_UNKNOWN,
31 importer::TYPE_EDGE)
32 #else
28 IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImporterType, 33 IPC_ENUM_TRAITS_MIN_MAX_VALUE(importer::ImporterType,
29 importer::TYPE_UNKNOWN, 34 importer::TYPE_UNKNOWN,
30 importer::TYPE_BOOKMARKS_FILE) 35 importer::TYPE_BOOKMARKS_FILE)
36 #endif
31 37
32 IPC_STRUCT_TRAITS_BEGIN(importer::SourceProfile) 38 IPC_STRUCT_TRAITS_BEGIN(importer::SourceProfile)
33 IPC_STRUCT_TRAITS_MEMBER(importer_name) 39 IPC_STRUCT_TRAITS_MEMBER(importer_name)
34 IPC_STRUCT_TRAITS_MEMBER(importer_type) 40 IPC_STRUCT_TRAITS_MEMBER(importer_type)
35 IPC_STRUCT_TRAITS_MEMBER(source_path) 41 IPC_STRUCT_TRAITS_MEMBER(source_path)
36 IPC_STRUCT_TRAITS_MEMBER(app_path) 42 IPC_STRUCT_TRAITS_MEMBER(app_path)
37 IPC_STRUCT_TRAITS_MEMBER(services_supported) 43 IPC_STRUCT_TRAITS_MEMBER(services_supported)
38 IPC_STRUCT_TRAITS_MEMBER(locale) 44 IPC_STRUCT_TRAITS_MEMBER(locale)
39 IPC_STRUCT_TRAITS_END() 45 IPC_STRUCT_TRAITS_END()
40 46
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 84
79 #if defined(OS_WIN) 85 #if defined(OS_WIN)
80 IPC_STRUCT_TRAITS_BEGIN(importer::ImporterIE7PasswordInfo) 86 IPC_STRUCT_TRAITS_BEGIN(importer::ImporterIE7PasswordInfo)
81 IPC_STRUCT_TRAITS_MEMBER(url_hash) 87 IPC_STRUCT_TRAITS_MEMBER(url_hash)
82 IPC_STRUCT_TRAITS_MEMBER(encrypted_data) 88 IPC_STRUCT_TRAITS_MEMBER(encrypted_data)
83 IPC_STRUCT_TRAITS_MEMBER(date_created) 89 IPC_STRUCT_TRAITS_MEMBER(date_created)
84 IPC_STRUCT_TRAITS_END() 90 IPC_STRUCT_TRAITS_END()
85 #endif 91 #endif
86 92
87 #endif // CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_ 93 #endif // CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698