| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FIREFOX3_IMPORTER_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_FIREFOX3_IMPORTER_H_ |
| 6 #define CHROME_BROWSER_IMPORTER_FIREFOX3_IMPORTER_H_ | 6 #define CHROME_BROWSER_IMPORTER_FIREFOX3_IMPORTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 virtual ~Firefox3Importer(); | 40 virtual ~Firefox3Importer(); |
| 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(); |
| 46 // Import the user's home page, unless it is set to default home page as | 46 // Import the user's home page, unless it is set to default home page as |
| 47 // defined in browserconfig.properties. | 47 // defined in browserconfig.properties. |
| 48 void ImportHomepage(); | 48 void ImportHomepage(); |
| 49 void GetSearchEnginesXMLFiles(std::vector<base::FilePath>* files); | 49 void GetSearchEnginesXMLData(std::vector<std::string>* search_engine_data); |
| 50 | 50 |
| 51 // The struct stores the information about a bookmark item. | 51 // The struct stores the information about a bookmark item. |
| 52 struct BookmarkItem; | 52 struct BookmarkItem; |
| 53 typedef std::vector<BookmarkItem*> BookmarkList; | 53 typedef std::vector<BookmarkItem*> BookmarkList; |
| 54 | 54 |
| 55 // Gets the specific IDs of bookmark root node from |db|. | 55 // Gets the specific IDs of bookmark root node from |db|. |
| 56 void LoadRootNodeID(sql::Connection* db, int* toolbar_folder_id, | 56 void LoadRootNodeID(sql::Connection* db, int* toolbar_folder_id, |
| 57 int* menu_folder_id, int* unsorted_folder_id); | 57 int* menu_folder_id, int* unsorted_folder_id); |
| 58 | 58 |
| 59 // Loads all livemark IDs from database |db|. | 59 // Loads all livemark IDs from database |db|. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 80 | 80 |
| 81 #if defined(OS_POSIX) | 81 #if defined(OS_POSIX) |
| 82 // Stored because we can only access it from the UI thread. | 82 // Stored because we can only access it from the UI thread. |
| 83 std::string locale_; | 83 std::string locale_; |
| 84 #endif | 84 #endif |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(Firefox3Importer); | 86 DISALLOW_COPY_AND_ASSIGN(Firefox3Importer); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #endif // CHROME_BROWSER_IMPORTER_FIREFOX3_IMPORTER_H_ | 89 #endif // CHROME_BROWSER_IMPORTER_FIREFOX3_IMPORTER_H_ |
| OLD | NEW |