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

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

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (simplify Read method) Created 6 years, 3 months 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 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "chrome/common/importer/importer_type.h" 16 #include "chrome/common/importer/importer_type.h"
17 #include "url/gurl.h" 17 #include "url/gurl.h"
18 18
19 // Types needed for importing data from other browsers and the Google Toolbar. 19 // Types needed for importing data from other browsers and the Google Toolbar.
20 namespace importer { 20 namespace importer {
21 21
22 // An enumeration of the type of data that can be imported. 22 // An enumeration of the type of data that can be imported.
23 enum ImportItem { 23 enum ImportItem {
24 NONE = 0, 24 NONE = 0,
25 HISTORY = 1 << 0, 25 HISTORY = 1 << 0,
26 FAVORITES = 1 << 1, 26 FAVORITES = 1 << 1,
27 COOKIES = 1 << 2, // Not supported yet. 27 COOKIES = 1 << 2, // Not supported yet.
28 PASSWORDS = 1 << 3, 28 PASSWORDS = 1 << 3,
29 SEARCH_ENGINES = 1 << 4, 29 SEARCH_ENGINES = 1 << 4,
30 HOME_PAGE = 1 << 5, 30 HOME_PAGE = 1 << 5,
31 ALL = (1 << 6) - 1 // All the bits should be 1, hence the -1. 31 AUTOFILL_FORM_DATA = 1 << 6,
32 ALL = (1 << 7) - 1 // All the bits should be 1, hence the -1.
32 }; 33 };
33 34
34 // Information about a profile needed by an importer to do import work. 35 // Information about a profile needed by an importer to do import work.
35 struct SourceProfile { 36 struct SourceProfile {
36 SourceProfile(); 37 SourceProfile();
37 ~SourceProfile(); 38 ~SourceProfile();
38 39
39 base::string16 importer_name; 40 base::string16 importer_name;
40 ImporterType importer_type; 41 ImporterType importer_type;
41 base::FilePath source_path; 42 base::FilePath source_path;
(...skipping 30 matching lines...) Expand all
72 enum VisitSource { 73 enum VisitSource {
73 VISIT_SOURCE_BROWSED = 0, 74 VISIT_SOURCE_BROWSED = 0,
74 VISIT_SOURCE_FIREFOX_IMPORTED = 1, 75 VISIT_SOURCE_FIREFOX_IMPORTED = 1,
75 VISIT_SOURCE_IE_IMPORTED = 2, 76 VISIT_SOURCE_IE_IMPORTED = 2,
76 VISIT_SOURCE_SAFARI_IMPORTED = 3, 77 VISIT_SOURCE_SAFARI_IMPORTED = 3,
77 }; 78 };
78 79
79 } // namespace importer 80 } // namespace importer
80 81
81 #endif // CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_ 82 #endif // CHROME_COMMON_IMPORTER_IMPORTER_DATA_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/common/importer/importer_bridge.h ('k') | chrome/common/importer/profile_import_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698