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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/importer/edge_importer_win.h
diff --git a/chrome/utility/importer/edge_importer_win.h b/chrome/utility/importer/edge_importer_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..048d1e3171651bc58c2f636dbacdbee6cfcb0075
--- /dev/null
+++ b/chrome/utility/importer/edge_importer_win.h
@@ -0,0 +1,45 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_UTILITY_IMPORTER_EDGE_IMPORTER_WIN_H_
+#define CHROME_UTILITY_IMPORTER_EDGE_IMPORTER_WIN_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/files/file_path.h"
+#include "chrome/utility/importer/importer.h"
+#include "components/favicon_base/favicon_usage_data.h"
+
+struct ImportedBookmarkEntry;
+
+class EdgeImporter : public Importer {
+ public:
+ EdgeImporter();
+
+ // Importer:
+ void StartImport(const importer::SourceProfile& source_profile,
+ uint16 items,
+ ImporterBridge* bridge) override;
+
+ private:
+ 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
+
+ ~EdgeImporter() override;
+
+ void ImportFavorites();
+ // This function will read the favorites from the spartan database storing
+ // the bookmark items in |bookmarks| and favicon information in |favicons|.
+ void ParseFavoritesDatabase(std::vector<ImportedBookmarkEntry>* bookmarks,
+ favicon_base::FaviconUsageDataList* favicons);
+
+ // Edge does not have source path. It's used in unit tests only for providing
+ // a fake source for the spartan database location.
+ base::FilePath source_path_;
+
+ DISALLOW_COPY_AND_ASSIGN(EdgeImporter);
+};
+
+#endif // CHROME_UTILITY_IMPORTER_EDGE_IMPORTER_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698