| 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> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void ImportHomepage(); | 52 void ImportHomepage(); |
| 53 void ImportAutofillFormData(); | 53 void ImportAutofillFormData(); |
| 54 void GetSearchEnginesXMLData(std::vector<std::string>* search_engine_data); | 54 void GetSearchEnginesXMLData(std::vector<std::string>* search_engine_data); |
| 55 void GetSearchEnginesXMLDataFromJSON( | 55 void GetSearchEnginesXMLDataFromJSON( |
| 56 std::vector<std::string>* search_engine_data); | 56 std::vector<std::string>* search_engine_data); |
| 57 | 57 |
| 58 // The struct stores the information about a bookmark item. | 58 // The struct stores the information about a bookmark item. |
| 59 struct BookmarkItem; | 59 struct BookmarkItem; |
| 60 typedef std::vector<BookmarkItem*> BookmarkList; | 60 typedef std::vector<BookmarkItem*> BookmarkList; |
| 61 | 61 |
| 62 // Gets the specific IDs of bookmark root node from |db|. | 62 // Gets the specific ID of bookmark node with given GUID from |db|. |
| 63 void LoadRootNodeID(sql::Connection* db, int* toolbar_folder_id, | 63 // Returns -1 if not found. |
| 64 int* menu_folder_id, int* unsorted_folder_id); | 64 int LoadNodeIDByGUID(sql::Connection* db, const std::string& GUID); |
| 65 | 65 |
| 66 // Loads all livemark IDs from database |db|. | 66 // Loads all livemark IDs from database |db|. |
| 67 void LoadLivemarkIDs(sql::Connection* db, std::set<int>* livemark); | 67 void LoadLivemarkIDs(sql::Connection* db, std::set<int>* livemark); |
| 68 | 68 |
| 69 // Gets the bookmark folder with given ID, and adds the entry in |list| | 69 // Gets the bookmark folder with given ID, and adds the entry in |list| |
| 70 // if successful. | 70 // if successful. |
| 71 void GetTopBookmarkFolder(sql::Connection* db, | 71 void GetTopBookmarkFolder(sql::Connection* db, |
| 72 int folder_id, | 72 int folder_id, |
| 73 BookmarkList* list); | 73 BookmarkList* list); |
| 74 | 74 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 87 | 87 |
| 88 #if defined(OS_POSIX) | 88 #if defined(OS_POSIX) |
| 89 // Stored because we can only access it from the UI thread. | 89 // Stored because we can only access it from the UI thread. |
| 90 std::string locale_; | 90 std::string locale_; |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(FirefoxImporter); | 93 DISALLOW_COPY_AND_ASSIGN(FirefoxImporter); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ | 96 #endif // CHROME_UTILITY_IMPORTER_FIREFOX_IMPORTER_H_ |
| OLD | NEW |