OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FIREFOX_IMPORTER_H_ | 5 #ifndef CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ |
6 #define CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ | 6 #define CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 14 matching lines...) Expand all Loading... |
25 // Importer for Mozilla Firefox 3 and later. | 25 // Importer for Mozilla Firefox 3 and later. |
26 // Firefox stores its persistent information in a system called places. | 26 // Firefox stores its persistent information in a system called places. |
27 // http://wiki.mozilla.org/Places | 27 // http://wiki.mozilla.org/Places |
28 class FirefoxImporter : public Importer { | 28 class FirefoxImporter : public Importer { |
29 public: | 29 public: |
30 FirefoxImporter(); | 30 FirefoxImporter(); |
31 | 31 |
32 // Importer: | 32 // Importer: |
33 virtual void StartImport(const importer::SourceProfile& source_profile, | 33 virtual void StartImport(const importer::SourceProfile& source_profile, |
34 uint16 items, | 34 uint16 items, |
35 ImporterBridge* bridge) OVERRIDE; | 35 ImporterBridge* bridge) override; |
36 | 36 |
37 private: | 37 private: |
38 typedef std::map<int64, std::set<GURL> > FaviconMap; | 38 typedef std::map<int64, std::set<GURL> > FaviconMap; |
39 | 39 |
40 virtual ~FirefoxImporter(); | 40 virtual ~FirefoxImporter(); |
41 | 41 |
42 void ImportBookmarks(); | 42 void ImportBookmarks(); |
43 void ImportPasswords(); | 43 void ImportPasswords(); |
44 void ImportHistory(); | 44 void ImportHistory(); |
45 void ImportSearchEngines(); | 45 void ImportSearchEngines(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 #if defined(OS_POSIX) | 84 #if defined(OS_POSIX) |
85 // Stored because we can only access it from the UI thread. | 85 // Stored because we can only access it from the UI thread. |
86 std::string locale_; | 86 std::string locale_; |
87 #endif | 87 #endif |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(FirefoxImporter); | 89 DISALLOW_COPY_AND_ASSIGN(FirefoxImporter); |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ | 92 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ |
OLD | NEW |