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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 // Contains information needed for importing search engine urls. | 53 // Contains information needed for importing search engine urls. |
54 struct SearchEngineInfo { | 54 struct SearchEngineInfo { |
55 // |url| is a string instead of a GURL since it may not actually be a valid | 55 // |url| is a string instead of a GURL since it may not actually be a valid |
56 // GURL directly (e.g. for "http://%s.com"). | 56 // GURL directly (e.g. for "http://%s.com"). |
57 base::string16 url; | 57 base::string16 url; |
58 base::string16 keyword; | 58 base::string16 keyword; |
59 base::string16 display_name; | 59 base::string16 display_name; |
60 }; | 60 }; |
61 | 61 |
62 #if defined(OS_WIN) | |
63 // Contains the information read from the IE7/IE8 Storage2 key in the registry. | 62 // Contains the information read from the IE7/IE8 Storage2 key in the registry. |
64 struct ImporterIE7PasswordInfo { | 63 struct ImporterIE7PasswordInfo { |
65 ImporterIE7PasswordInfo(); | 64 ImporterIE7PasswordInfo(); |
| 65 ImporterIE7PasswordInfo(const ImporterIE7PasswordInfo& other); |
66 ~ImporterIE7PasswordInfo(); | 66 ~ImporterIE7PasswordInfo(); |
| 67 ImporterIE7PasswordInfo& operator=(const ImporterIE7PasswordInfo& other); |
67 | 68 |
68 // Hash of the url. | 69 // Hash of the url. |
69 std::wstring url_hash; | 70 base::string16 url_hash; |
70 | 71 |
71 // Encrypted data containing the username, password and some more | 72 // Encrypted data containing the username, password and some more |
72 // undocumented fields. | 73 // undocumented fields. |
73 std::vector<unsigned char> encrypted_data; | 74 std::vector<unsigned char> encrypted_data; |
74 | 75 |
75 // When the login was imported. | 76 // When the login was imported. |
76 base::Time date_created; | 77 base::Time date_created; |
77 }; | 78 }; |
78 #endif | |
79 | 79 |
80 // Mapped to history::VisitSource after import in the browser. | 80 // Mapped to history::VisitSource after import in the browser. |
81 enum VisitSource { | 81 enum VisitSource { |
82 VISIT_SOURCE_BROWSED = 0, | 82 VISIT_SOURCE_BROWSED = 0, |
83 VISIT_SOURCE_FIREFOX_IMPORTED = 1, | 83 VISIT_SOURCE_FIREFOX_IMPORTED = 1, |
84 VISIT_SOURCE_IE_IMPORTED = 2, | 84 VISIT_SOURCE_IE_IMPORTED = 2, |
85 VISIT_SOURCE_SAFARI_IMPORTED = 3, | 85 VISIT_SOURCE_SAFARI_IMPORTED = 3, |
86 }; | 86 }; |
87 | 87 |
88 } // namespace importer | 88 } // namespace importer |
89 | 89 |
90 #endif // CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ | 90 #endif // CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ |
OLD | NEW |