OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_UTILITY_IMPORTER_EDGE_IMPORTER_WIN_H_ | |
6 #define CHROME_UTILITY_IMPORTER_EDGE_IMPORTER_WIN_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/basictypes.h" | |
11 #include "base/compiler_specific.h" | |
12 #include "base/files/file_path.h" | |
13 #include "chrome/utility/importer/importer.h" | |
14 #include "components/favicon_base/favicon_usage_data.h" | |
15 | |
16 struct ImportedBookmarkEntry; | |
17 | |
18 class EdgeImporter : public Importer { | |
19 public: | |
20 EdgeImporter(); | |
21 | |
22 // Importer: | |
23 void StartImport(const importer::SourceProfile& source_profile, | |
24 uint16 items, | |
25 ImporterBridge* bridge) override; | |
26 | |
27 private: | |
28 typedef std::vector<ImportedBookmarkEntry> BookmarkVector; | |
Ilya Sherman
2015/11/26 02:04:45
nit: This is not actually used in the header. I'd
forshaw
2015/11/30 12:57:59
Removed, just a holdover from previous IE based im
| |
29 | |
30 ~EdgeImporter() override; | |
31 | |
32 void ImportFavorites(); | |
33 // This function will read the favorites from the spartan database storing | |
34 // the bookmark items in |bookmarks| and favicon information in |favicons|. | |
35 void ParseFavoritesDatabase(std::vector<ImportedBookmarkEntry>* bookmarks, | |
36 favicon_base::FaviconUsageDataList* favicons); | |
37 | |
38 // Edge does not have source path. It's used in unit tests only for providing | |
39 // a fake source for the spartan database location. | |
40 base::FilePath source_path_; | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(EdgeImporter); | |
43 }; | |
44 | |
45 #endif // CHROME_UTILITY_IMPORTER_EDGE_IMPORTER_WIN_H_ | |
OLD | NEW |