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

Side by Side Diff: chrome/browser/importer/ie_importer.h

Issue 14575004: Extract BookmarksFileImporter from Firefox2Importer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 7 years, 7 months 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 | Annotate | Revision Log
OLDNEW
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/ie_importer_test_registry_overrider_win.h"
16 #include "chrome/browser/importer/importer.h" 16 #include "chrome/browser/importer/importer.h"
17 #include "chrome/browser/importer/profile_writer.h" 17
18 struct ImportedBookmarkEntry;
19
20 namespace history {
21 struct ImportedFaviconUsage;
22 }
18 23
19 class IEImporter : public Importer { 24 class IEImporter : public Importer {
20 public: 25 public:
21 IEImporter(); 26 IEImporter();
22 27
23 // Importer: 28 // Importer:
24 virtual void StartImport(const importer::SourceProfile& source_profile, 29 virtual void StartImport(const importer::SourceProfile& source_profile,
25 uint16 items, 30 uint16 items,
26 ImporterBridge* bridge) OVERRIDE; 31 ImporterBridge* bridge) OVERRIDE;
27 32
28 private: 33 private:
29 typedef std::vector<ProfileWriter::BookmarkEntry> BookmarkVector; 34 typedef std::vector<ImportedBookmarkEntry> BookmarkVector;
30 35
31 // A struct that hosts the information of IE Favorite folder. 36 // A struct that hosts the information of IE Favorite folder.
32 struct FavoritesInfo { 37 struct FavoritesInfo {
33 base::FilePath path; 38 base::FilePath path;
34 string16 links_folder; 39 string16 links_folder;
35 }; 40 };
36 41
37 // IE PStore subkey GUID: AutoComplete password & form data. 42 // IE PStore subkey GUID: AutoComplete password & form data.
38 static const GUID kPStoreAutocompleteGUID; 43 static const GUID kPStoreAutocompleteGUID;
39 44
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // fake source. 85 // fake source.
81 base::FilePath source_path_; 86 base::FilePath source_path_;
82 87
83 // Used to override the registry for IEImporterTests if needed. 88 // Used to override the registry for IEImporterTests if needed.
84 IEImporterTestRegistryOverrider test_registry_overrider_; 89 IEImporterTestRegistryOverrider test_registry_overrider_;
85 90
86 DISALLOW_COPY_AND_ASSIGN(IEImporter); 91 DISALLOW_COPY_AND_ASSIGN(IEImporter);
87 }; 92 };
88 93
89 #endif // CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_ 94 #endif // CHROME_BROWSER_IMPORTER_IE_IMPORTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698