-// Copyright (c) 2012 The Chromium Authors. All rights reserved.\r
-// Use of this source code is governed by a BSD-style license that can be\r
-// found in the LICENSE file.\r
-\r
-#ifndef CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_\r
-#define CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_\r
-\r
-#include <vector>\r
-\r
-#include "base/basictypes.h"\r
-#include "base/compiler_specific.h"\r
-#include "base/files/file_path.h"\r
-#include "base/gtest_prod_util.h"\r
-#include "base/strings/string16.h"\r
-#include "chrome/utility/importer/importer.h"\r
-\r
-struct ImportedBookmarkEntry;\r
-struct ImportedFaviconUsage;\r
-\r
-class IEImporter : public Importer {\r
- public:\r
- IEImporter();\r
-\r
- // Importer:\r
- virtual void StartImport(const importer::SourceProfile& source_profile,\r
- uint16 items,\r
- ImporterBridge* bridge) OVERRIDE;\r
-\r
- private:\r
- typedef std::vector<ImportedBookmarkEntry> BookmarkVector;\r
-\r
- // A struct that hosts the information of IE Favorite folder.\r
- struct FavoritesInfo {\r
- base::FilePath path;\r
- base::string16 links_folder;\r
- };\r
-\r
- // IE PStore subkey GUID: AutoComplete password & form data.\r
- static const GUID kPStoreAutocompleteGUID;\r
-\r
- // A fake GUID for unit test.\r
- static const GUID kUnittestGUID;\r
-\r
- FRIEND_TEST_ALL_PREFIXES(ImporterTest, IEImporter);\r
-\r
- virtual ~IEImporter();\r
-\r
- void ImportFavorites();\r
-\r
- // Reads history information from COM interface.\r
- void ImportHistory();\r
-\r
- // Import password for IE6 stored in protected storage.\r
- void ImportPasswordsIE6();\r
-\r
- // Import password for IE7 and IE8 stored in Storage2.\r
- void ImportPasswordsIE7();\r
-\r
- void ImportSearchEngines();\r
-\r
- // Import the homepage setting of IE. Note: IE supports multiple home pages,\r
- // whereas Chrome doesn't, so we import only the one defined under the\r
- // 'Start Page' registry key. We don't import if the homepage is set to the\r
- // machine default.\r
- void ImportHomepage();\r
-\r
- // Gets the information of Favorites folder. Returns true if successful.\r
- bool GetFavoritesInfo(FavoritesInfo* info);\r
-\r
- // This function will read the files in the Favorites folder, and store\r
- // the bookmark items in |bookmarks| and favicon information in |favicons|.\r
- void ParseFavoritesFolder(\r
- const FavoritesInfo& info,\r
- BookmarkVector* bookmarks,\r
- std::vector<ImportedFaviconUsage>* favicons);\r
-\r
- // Determines which version of IE is in use.\r
- int CurrentIEVersion() const;\r
-\r
- // IE does not have source path. It's used in unit tests only for providing a\r
- // fake source.\r
- base::FilePath source_path_;\r
-\r
- DISALLOW_COPY_AND_ASSIGN(IEImporter);\r
-};\r
-\r
-#endif // CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_\r
+// Copyright (c) 2012 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_IE_IMPORTER_WIN_H_
+#define CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_
+
+#include <vector>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/files/file_path.h"
+#include "base/gtest_prod_util.h"
+#include "base/strings/string16.h"
+#include "chrome/utility/importer/importer.h"
+
+struct ImportedBookmarkEntry;
+struct ImportedFaviconUsage;
+
+class IEImporter : public Importer {
+ public:
+ IEImporter();
+
+ // Importer:
+ virtual void StartImport(const importer::SourceProfile& source_profile,
+ uint16 items,
+ ImporterBridge* bridge) override;
+
+ private:
+ typedef std::vector<ImportedBookmarkEntry> BookmarkVector;
+
+ // A struct that hosts the information of IE Favorite folder.
+ struct FavoritesInfo {
+ base::FilePath path;
+ base::string16 links_folder;
+ };
+
+ // IE PStore subkey GUID: AutoComplete password & form data.
+ static const GUID kPStoreAutocompleteGUID;
+
+ // A fake GUID for unit test.
+ static const GUID kUnittestGUID;
+
+ FRIEND_TEST_ALL_PREFIXES(ImporterTest, IEImporter);
+
+ virtual ~IEImporter();
+
+ void ImportFavorites();
+
+ // Reads history information from COM interface.
+ void ImportHistory();
+
+ // Import password for IE6 stored in protected storage.
+ void ImportPasswordsIE6();
+
+ // Import password for IE7 and IE8 stored in Storage2.
+ void ImportPasswordsIE7();
+
+ void ImportSearchEngines();
+
+ // Import the homepage setting of IE. Note: IE supports multiple home pages,
+ // whereas Chrome doesn't, so we import only the one defined under the
+ // 'Start Page' registry key. We don't import if the homepage is set to the
+ // machine default.
+ void ImportHomepage();
+
+ // Gets the information of Favorites folder. Returns true if successful.
+ bool GetFavoritesInfo(FavoritesInfo* info);
+
+ // This function will read the files in the Favorites folder, and store
+ // the bookmark items in |bookmarks| and favicon information in |favicons|.
+ void ParseFavoritesFolder(
+ const FavoritesInfo& info,
+ BookmarkVector* bookmarks,
+ std::vector<ImportedFaviconUsage>* favicons);
+
+ // Determines which version of IE is in use.
+ int CurrentIEVersion() const;
+
+ // IE does not have source path. It's used in unit tests only for providing a
+ // fake source.
+ base::FilePath source_path_;
+
+ DISALLOW_COPY_AND_ASSIGN(IEImporter);
+};
+
+#endif // CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_