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

Side by Side Diff: chrome/utility/importer/firefox_importer.h

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « chrome/utility/importer/favicon_reencode.h ('k') | chrome/utility/importer/firefox_importer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/utility/importer/favicon_reencode.h ('k') | chrome/utility/importer/firefox_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698