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 <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include <map> | 11 #include <map> |
9 #include <set> | 12 #include <set> |
10 #include <string> | 13 #include <string> |
11 #include <vector> | 14 #include <vector> |
12 | 15 |
13 #include "base/basictypes.h" | |
14 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
15 #include "base/files/file_path.h" | 17 #include "base/files/file_path.h" |
| 18 #include "base/macros.h" |
| 19 #include "build/build_config.h" |
16 #include "chrome/utility/importer/importer.h" | 20 #include "chrome/utility/importer/importer.h" |
17 #include "components/favicon_base/favicon_usage_data.h" | 21 #include "components/favicon_base/favicon_usage_data.h" |
18 | 22 |
19 class GURL; | 23 class GURL; |
20 | 24 |
21 namespace sql { | 25 namespace sql { |
22 class Connection; | 26 class Connection; |
23 } | 27 } |
24 | 28 |
25 // Importer for Mozilla Firefox 3 and later. | 29 // Importer for Mozilla Firefox 3 and later. |
26 // Firefox stores its persistent information in a system called places. | 30 // Firefox stores its persistent information in a system called places. |
27 // http://wiki.mozilla.org/Places | 31 // http://wiki.mozilla.org/Places |
28 class FirefoxImporter : public Importer { | 32 class FirefoxImporter : public Importer { |
29 public: | 33 public: |
30 FirefoxImporter(); | 34 FirefoxImporter(); |
31 | 35 |
32 // Importer: | 36 // Importer: |
33 void StartImport(const importer::SourceProfile& source_profile, | 37 void StartImport(const importer::SourceProfile& source_profile, |
34 uint16 items, | 38 uint16_t items, |
35 ImporterBridge* bridge) override; | 39 ImporterBridge* bridge) override; |
36 | 40 |
37 private: | 41 private: |
38 typedef std::map<int64, std::set<GURL> > FaviconMap; | 42 typedef std::map<int64_t, std::set<GURL>> FaviconMap; |
39 | 43 |
40 ~FirefoxImporter() override; | 44 ~FirefoxImporter() override; |
41 | 45 |
42 void ImportBookmarks(); | 46 void ImportBookmarks(); |
43 void ImportPasswords(); | 47 void ImportPasswords(); |
44 void ImportHistory(); | 48 void ImportHistory(); |
45 void ImportSearchEngines(); | 49 void ImportSearchEngines(); |
46 // Import the user's home page, unless it is set to default home page as | 50 // Import the user's home page, unless it is set to default home page as |
47 // defined in browserconfig.properties. | 51 // defined in browserconfig.properties. |
48 void ImportHomepage(); | 52 void ImportHomepage(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 87 |
84 #if defined(OS_POSIX) | 88 #if defined(OS_POSIX) |
85 // Stored because we can only access it from the UI thread. | 89 // Stored because we can only access it from the UI thread. |
86 std::string locale_; | 90 std::string locale_; |
87 #endif | 91 #endif |
88 | 92 |
89 DISALLOW_COPY_AND_ASSIGN(FirefoxImporter); | 93 DISALLOW_COPY_AND_ASSIGN(FirefoxImporter); |
90 }; | 94 }; |
91 | 95 |
92 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ | 96 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ |
OLD | NEW |