| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 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_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ |
| 7 | 7 |
| 8 class BookmarkModel; | 8 class BookmarkModel; |
| 9 class FilePath; | 9 class FilePath; |
| 10 class MessageLoop; | 10 class MessageLoop; |
| 11 | 11 |
| 12 namespace bookmark_html_writer { | 12 namespace bookmark_html_writer { |
| 13 | 13 |
| 14 // Writes the bookmarks out in the 'bookmarks.html' format understood by | 14 // Writes the bookmarks out in the 'bookmarks.html' format understood by |
| 15 // Firefox and IE. The results are written to the file at |path|. | 15 // Firefox and IE. The results are written to the file at |path|. The file |
| 16 // If |thread| is non-null, writing is done on that thread, otherwise | 16 // thread is used. |
| 17 // writing is synchronous. | |
| 18 // | 17 // |
| 19 // TODO(sky): need a callback on failure. | 18 // TODO(sky): need a callback on failure. |
| 20 void WriteBookmarks(MessageLoop* thread, | 19 void WriteBookmarks(BookmarkModel* model, const FilePath& path); |
| 21 BookmarkModel* model, | |
| 22 const FilePath& path); | |
| 23 | 20 |
| 24 } | 21 } |
| 25 | 22 |
| 26 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ | 23 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ |
| OLD | NEW |