| 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 #ifndef CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ | 5 #ifndef CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ |
| 6 #define CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ | 6 #define CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 PASSWORDS = 1 << 3, | 30 PASSWORDS = 1 << 3, |
| 31 SEARCH_ENGINES = 1 << 4, | 31 SEARCH_ENGINES = 1 << 4, |
| 32 HOME_PAGE = 1 << 5, | 32 HOME_PAGE = 1 << 5, |
| 33 AUTOFILL_FORM_DATA = 1 << 6, | 33 AUTOFILL_FORM_DATA = 1 << 6, |
| 34 ALL = (1 << 7) - 1 // All the bits should be 1, hence the -1. | 34 ALL = (1 << 7) - 1 // All the bits should be 1, hence the -1. |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 // Information about a profile needed by an importer to do import work. | 37 // Information about a profile needed by an importer to do import work. |
| 38 struct SourceProfile { | 38 struct SourceProfile { |
| 39 SourceProfile(); | 39 SourceProfile(); |
| 40 SourceProfile(const SourceProfile& other); |
| 40 ~SourceProfile(); | 41 ~SourceProfile(); |
| 41 | 42 |
| 42 base::string16 importer_name; | 43 base::string16 importer_name; |
| 43 ImporterType importer_type; | 44 ImporterType importer_type; |
| 44 base::FilePath source_path; | 45 base::FilePath source_path; |
| 45 base::FilePath app_path; | 46 base::FilePath app_path; |
| 46 uint16_t services_supported; // Bitmask of ImportItem. | 47 uint16_t services_supported; // Bitmask of ImportItem. |
| 47 // The application locale. Stored because we can only access it from the UI | 48 // The application locale. Stored because we can only access it from the UI |
| 48 // thread on the browser process. This is only used by the Firefox importer. | 49 // thread on the browser process. This is only used by the Firefox importer. |
| 49 std::string locale; | 50 std::string locale; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 80 enum VisitSource { | 81 enum VisitSource { |
| 81 VISIT_SOURCE_BROWSED = 0, | 82 VISIT_SOURCE_BROWSED = 0, |
| 82 VISIT_SOURCE_FIREFOX_IMPORTED = 1, | 83 VISIT_SOURCE_FIREFOX_IMPORTED = 1, |
| 83 VISIT_SOURCE_IE_IMPORTED = 2, | 84 VISIT_SOURCE_IE_IMPORTED = 2, |
| 84 VISIT_SOURCE_SAFARI_IMPORTED = 3, | 85 VISIT_SOURCE_SAFARI_IMPORTED = 3, |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace importer | 88 } // namespace importer |
| 88 | 89 |
| 89 #endif // CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ | 90 #endif // CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ |
| OLD | NEW |