| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_ | 5 #ifndef CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_ |
| 6 #define CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_ | 6 #define CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 13 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
| 15 #include "base/macros.h" |
| 14 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 15 #include "chrome/utility/importer/importer.h" | 17 #include "chrome/utility/importer/importer.h" |
| 16 #include "components/favicon_base/favicon_usage_data.h" | 18 #include "components/favicon_base/favicon_usage_data.h" |
| 17 | 19 |
| 18 struct ImportedBookmarkEntry; | 20 struct ImportedBookmarkEntry; |
| 19 | 21 |
| 20 class IEImporter : public Importer { | 22 class IEImporter : public Importer { |
| 21 public: | 23 public: |
| 22 IEImporter(); | 24 IEImporter(); |
| 23 | 25 |
| 24 // Importer: | 26 // Importer: |
| 25 void StartImport(const importer::SourceProfile& source_profile, | 27 void StartImport(const importer::SourceProfile& source_profile, |
| 26 uint16 items, | 28 uint16_t items, |
| 27 ImporterBridge* bridge) override; | 29 ImporterBridge* bridge) override; |
| 28 | 30 |
| 29 private: | 31 private: |
| 30 typedef std::vector<ImportedBookmarkEntry> BookmarkVector; | 32 typedef std::vector<ImportedBookmarkEntry> BookmarkVector; |
| 31 | 33 |
| 32 // A struct that hosts the information of IE Favorite folder. | 34 // A struct that hosts the information of IE Favorite folder. |
| 33 struct FavoritesInfo { | 35 struct FavoritesInfo { |
| 34 base::FilePath path; | 36 base::FilePath path; |
| 35 base::string16 links_folder; | 37 base::string16 links_folder; |
| 36 }; | 38 }; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool edge_import_mode_; | 82 bool edge_import_mode_; |
| 81 | 83 |
| 82 // IE does not have source path. It's used in unit tests only for providing a | 84 // IE does not have source path. It's used in unit tests only for providing a |
| 83 // fake source and it's used if importing old Edge favorites on Windows 10. | 85 // fake source and it's used if importing old Edge favorites on Windows 10. |
| 84 base::FilePath source_path_; | 86 base::FilePath source_path_; |
| 85 | 87 |
| 86 DISALLOW_COPY_AND_ASSIGN(IEImporter); | 88 DISALLOW_COPY_AND_ASSIGN(IEImporter); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 #endif // CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_ | 91 #endif // CHROME_UTILITY_IMPORTER_IE_IMPORTER_WIN_H_ |
| OLD | NEW |