1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Singly or Multiply-included shared traits file depending on circumstances.
// This allows the use of IPC serialization macros in more than one IPC message
// file.
#ifndef CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_
#define CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_
#include "build/build_config.h"
#include "chrome/common/importer/importer_autofill_form_data_entry.h"
#include "components/favicon_base/favicon_usage_data.h"
#include "components/user_data_importer/common/imported_bookmark_entry.h"
#include "components/user_data_importer/common/importer_data_types.h"
#include "components/user_data_importer/common/importer_url_row.h"
#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
#if BUILDFLAG(IS_WIN)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
user_data_importer::TYPE_EDGE)
#else
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImporterType,
user_data_importer::TYPE_UNKNOWN,
user_data_importer::TYPE_BOOKMARKS_FILE)
#endif
IPC_ENUM_TRAITS_MIN_MAX_VALUE(user_data_importer::ImportItem,
user_data_importer::NONE,
user_data_importer::ALL)
IPC_STRUCT_TRAITS_BEGIN(user_data_importer::SourceProfile)
IPC_STRUCT_TRAITS_MEMBER(importer_name)
IPC_STRUCT_TRAITS_MEMBER(importer_type)
IPC_STRUCT_TRAITS_MEMBER(source_path)
IPC_STRUCT_TRAITS_MEMBER(app_path)
IPC_STRUCT_TRAITS_MEMBER(services_supported)
IPC_STRUCT_TRAITS_MEMBER(locale)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(user_data_importer::ImporterURLRow)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(title)
IPC_STRUCT_TRAITS_MEMBER(visit_count)
IPC_STRUCT_TRAITS_MEMBER(typed_count)
IPC_STRUCT_TRAITS_MEMBER(last_visit)
IPC_STRUCT_TRAITS_MEMBER(hidden)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(user_data_importer::ImportedBookmarkEntry)
IPC_STRUCT_TRAITS_MEMBER(in_toolbar)
IPC_STRUCT_TRAITS_MEMBER(is_folder)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(path)
IPC_STRUCT_TRAITS_MEMBER(title)
IPC_STRUCT_TRAITS_MEMBER(creation_time)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(favicon_base::FaviconUsageData)
IPC_STRUCT_TRAITS_MEMBER(favicon_url)
IPC_STRUCT_TRAITS_MEMBER(png_data)
IPC_STRUCT_TRAITS_MEMBER(urls)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(user_data_importer::SearchEngineInfo)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(keyword)
IPC_STRUCT_TRAITS_MEMBER(display_name)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(ImporterAutofillFormDataEntry)
IPC_STRUCT_TRAITS_MEMBER(name)
IPC_STRUCT_TRAITS_MEMBER(value)
IPC_STRUCT_TRAITS_MEMBER(times_used)
IPC_STRUCT_TRAITS_MEMBER(first_used)
IPC_STRUCT_TRAITS_MEMBER(last_used)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(user_data_importer::ImporterIE7PasswordInfo)
IPC_STRUCT_TRAITS_MEMBER(url_hash)
IPC_STRUCT_TRAITS_MEMBER(encrypted_data)
IPC_STRUCT_TRAITS_MEMBER(date_created)
IPC_STRUCT_TRAITS_END()
#endif // CHROME_COMMON_IMPORTER_PROFILE_IMPORT_PROCESS_PARAM_TRAITS_MACROS_H_
|