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

Unified Diff: chrome/browser/bookmarks/bookmark_html_writer.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/bookmarks/bookmark_context_menu.cc ('k') | chrome/browser/bookmarks/bookmark_html_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_html_writer.h
===================================================================
--- chrome/browser/bookmarks/bookmark_html_writer.h (revision 0)
+++ chrome/browser/bookmarks/bookmark_html_writer.h (revision 0)
@@ -0,0 +1,27 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_
+#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_
+
+#include <string>
+
+class BookmarkModel;
+class MessageLoop;
+
+namespace bookmark_html_writer {
+
+// Writes the bookmarks out in the 'bookmarks.html' format understood by
+// Firefox and IE. The results are written to the file at |path|.
+// If |thread| is non-null, writing is done on that thread, otherwise
+// writing is synchronous.
+//
+// TODO(sky): need a callback on failure.
+void WriteBookmarks(MessageLoop* thread,
+ BookmarkModel* model,
+ const std::wstring& path);
+
+}
+
+#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_
Property changes on: chrome\browser\bookmarks\bookmark_html_writer.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/bookmarks/bookmark_context_menu.cc ('k') | chrome/browser/bookmarks/bookmark_html_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698