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

Side by Side Diff: chrome/utility/importer/edge_importer_win.h

Issue 1465853002: Implement support for importing favorites from Edge on Windows 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix another CLANG warning Created 5 years 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698