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

Side by Side Diff: chrome/browser/bookmarks/bookmark_html_writer.h

Issue 6651014: Applied the IconType. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Takes single url from bookmark_urls_ and removes it from the list. 62 // Takes single url from bookmark_urls_ and removes it from the list.
63 // Returns true if there are more favicons to extract. 63 // Returns true if there are more favicons to extract.
64 bool FetchNextFavicon(); 64 bool FetchNextFavicon();
65 65
66 // Favicon fetch callback. After all favicons are fetched executes 66 // Favicon fetch callback. After all favicons are fetched executes
67 // html output on the file thread. 67 // html output on the file thread.
68 void OnFavIconDataAvailable(FaviconService::Handle handle, 68 void OnFavIconDataAvailable(FaviconService::Handle handle,
69 bool know_favicon, 69 bool know_favicon,
70 scoped_refptr<RefCountedMemory> data, 70 scoped_refptr<RefCountedMemory> data,
71 bool expired, 71 bool expired,
72 GURL icon_url); 72 GURL icon_url,
73 history::IconType icon_type);
73 74
74 // The Profile object used for accessing FaviconService, bookmarks model. 75 // The Profile object used for accessing FaviconService, bookmarks model.
75 Profile* profile_; 76 Profile* profile_;
76 77
77 // All URLs that are extracted from bookmarks. Used to fetch favicons 78 // All URLs that are extracted from bookmarks. Used to fetch favicons
78 // for each of them. After favicon is fetched top url is removed from list. 79 // for each of them. After favicon is fetched top url is removed from list.
79 std::list<std::string> bookmark_urls_; 80 std::list<std::string> bookmark_urls_;
80 81
81 // Consumer for requesting favicons. 82 // Consumer for requesting favicons.
82 CancelableRequestConsumer fav_icon_consumer_; 83 CancelableRequestConsumer fav_icon_consumer_;
(...skipping 18 matching lines...) Expand all
101 // thread is used. 102 // thread is used.
102 // Before writing to the file favicons are fetched on the main thread. 103 // Before writing to the file favicons are fetched on the main thread.
103 // TODO(sky): need a callback on failure. 104 // TODO(sky): need a callback on failure.
104 void WriteBookmarks(Profile* profile, 105 void WriteBookmarks(Profile* profile,
105 const FilePath& path, 106 const FilePath& path,
106 BookmarksExportObserver* observer); 107 BookmarksExportObserver* observer);
107 108
108 } // namespace bookmark_html_writer 109 } // namespace bookmark_html_writer
109 110
110 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_ 111 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_HTML_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698