OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 class BookmarkModel; |
| 11 class MessageLoop; |
| 12 |
| 13 namespace bookmark_html_writer { |
| 14 |
| 15 // Writes the bookmarks out in the 'bookmarks.html' format understood by |
| 16 // Firefox and IE. The results are written to the file at |path|. |
| 17 // If |thread| is non-null, writing is done on that thread, otherwise |
| 18 // writing is synchronous. |
| 19 // |
| 20 // TODO(sky): need a callback on failure. |
| 21 void WriteBookmarks(MessageLoop* thread, |
| 22 BookmarkModel* model, |
| 23 const std::wstring& path); |
| 24 |
| 25 } |
| 26 |
| 27 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ |
OLD | NEW |