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

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: Added missing include files 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 ~EdgeImporter() override;
29
30 void ImportFavorites();
31 // This function will read the favorites from the spartan database storing
32 // the bookmark items in |bookmarks| and favicon information in |favicons|.
33 void ParseFavoritesDatabase(std::vector<ImportedBookmarkEntry>* bookmarks,
34 favicon_base::FaviconUsageDataList* favicons);
35
36 // Edge does not have source path. It's used in unit tests only for providing
37 // a fake source for the spartan database location.
38 base::FilePath source_path_;
39
40 DISALLOW_COPY_AND_ASSIGN(EdgeImporter);
41 };
42
43 #endif // CHROME_UTILITY_IMPORTER_EDGE_IMPORTER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698