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

Unified Diff: chrome/browser/importer/firefox2_importer.h

Issue 9471: Adds import/export of bookmarks to bookmarks.html file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser.vcproj ('k') | chrome/browser/importer/firefox2_importer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/firefox2_importer.h
===================================================================
--- chrome/browser/importer/firefox2_importer.h (revision 4885)
+++ chrome/browser/importer/firefox2_importer.h (working copy)
@@ -33,6 +33,19 @@
const std::wstring& keyword,
const GURL& url);
+ // Imports the bookmarks from the specified file. |template_urls| and
+ // |favicons| may be null, in which case TemplateURLs and favicons are
+ // not parsed. Any bookmarks in |default_urls| are ignored.
+ static void ImportBookmarksFile(
+ const std::wstring& file_path,
+ const std::set<GURL>& default_urls,
+ bool first_run,
+ const std::wstring& first_folder_name,
+ Importer* importer,
+ std::vector<ProfileWriter::BookmarkEntry>* bookmarks,
+ std::vector<TemplateURL*>* template_urls,
+ std::vector<history::ImportedFavIconUsage>* favicons);
+
private:
FRIEND_TEST(FirefoxImporterTest, Firefox2BookmarkParse);
FRIEND_TEST(FirefoxImporterTest, Firefox2CookesParse);
@@ -105,9 +118,10 @@
ProfileWriter* writer_;
std::wstring source_path_;
std::wstring app_path_;
+ // If true, we only parse the bookmarks.html file specified as source_path_.
+ bool parsing_bookmarks_html_file_;
DISALLOW_EVIL_CONSTRUCTORS(Firefox2Importer);
};
#endif // CHROME_BROWSER_IMPORTER_FIREFOX2_IMPORTER_H_
-
« no previous file with comments | « chrome/browser/browser.vcproj ('k') | chrome/browser/importer/firefox2_importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698