| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/values.h" | |
| 15 #include "chrome/browser/history/history.h" | 14 #include "chrome/browser/history/history.h" |
| 16 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
| 17 #include "net/base/file_stream.h" | 16 #include "net/base/file_stream.h" |
| 18 | 17 |
| 19 class BookmarkModel; | |
| 20 class BookmarkNode; | 18 class BookmarkNode; |
| 21 class DictionaryValue; | |
| 22 class FilePath; | 19 class FilePath; |
| 23 class GURL; | 20 class GURL; |
| 24 class Profile; | 21 class Profile; |
| 25 | 22 |
| 26 // Observer for bookmark html output. Used only in tests. | 23 // Observer for bookmark html output. Used only in tests. |
| 27 class BookmarksExportObserver { | 24 class BookmarksExportObserver { |
| 28 public: | 25 public: |
| 29 // Is invoked on the IO thread. | 26 // Is invoked on the IO thread. |
| 30 virtual void OnExportFinished() = 0; | 27 virtual void OnExportFinished() = 0; |
| 31 | 28 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // thread is used. | 101 // thread is used. |
| 105 // Before writing to the file favicons are fetched on the main thread. | 102 // Before writing to the file favicons are fetched on the main thread. |
| 106 // TODO(sky): need a callback on failure. | 103 // TODO(sky): need a callback on failure. |
| 107 void WriteBookmarks(Profile* profile, | 104 void WriteBookmarks(Profile* profile, |
| 108 const FilePath& path, | 105 const FilePath& path, |
| 109 BookmarksExportObserver* observer); | 106 BookmarksExportObserver* observer); |
| 110 | 107 |
| 111 } // namespace bookmark_html_writer | 108 } // namespace bookmark_html_writer |
| 112 | 109 |
| 113 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ | 110 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ |
| OLD | NEW |