| 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_BROWSER_IMPORTER_IE_IMPORTER_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ | 6 #define CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "chrome/browser/importer/ie_importer_test_registry_overrider_win.h" |
| 15 #include "chrome/browser/importer/importer.h" | 16 #include "chrome/browser/importer/importer.h" |
| 16 #include "chrome/browser/importer/profile_writer.h" | 17 #include "chrome/browser/importer/profile_writer.h" |
| 17 | 18 |
| 18 class IEImporter : public Importer { | 19 class IEImporter : public Importer { |
| 19 public: | 20 public: |
| 20 IEImporter(); | 21 IEImporter(); |
| 21 | 22 |
| 22 // Importer: | 23 // Importer: |
| 23 virtual void StartImport(const importer::SourceProfile& source_profile, | 24 virtual void StartImport(const importer::SourceProfile& source_profile, |
| 24 uint16 items, | 25 uint16 items, |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 BookmarkVector* bookmarks, | 73 BookmarkVector* bookmarks, |
| 73 std::vector<history::ImportedFaviconUsage>* favicons); | 74 std::vector<history::ImportedFaviconUsage>* favicons); |
| 74 | 75 |
| 75 // Determines which version of IE is in use. | 76 // Determines which version of IE is in use. |
| 76 int CurrentIEVersion() const; | 77 int CurrentIEVersion() const; |
| 77 | 78 |
| 78 // IE does not have source path. It's used in unit tests only for providing a | 79 // IE does not have source path. It's used in unit tests only for providing a |
| 79 // fake source. | 80 // fake source. |
| 80 base::FilePath source_path_; | 81 base::FilePath source_path_; |
| 81 | 82 |
| 83 // Used to override the registry for IEImporterTests if needed. |
| 84 IEImporterTestRegistryOverrider test_registry_overrider_; |
| 85 |
| 82 DISALLOW_COPY_AND_ASSIGN(IEImporter); | 86 DISALLOW_COPY_AND_ASSIGN(IEImporter); |
| 83 }; | 87 }; |
| 84 | 88 |
| 85 #endif // CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ | 89 #endif // CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ |
| OLD | NEW |