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

Unified Diff: chrome/browser/gtk/options/general_page_gtk.h

Issue 141035: Refactor the favicon loader out of gtk/options/general_page_gtk to gtk/list_store_favicon_loader, (Closed)
Patch Set: rebase Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/list_store_favicon_loader.cc ('k') | chrome/browser/gtk/options/general_page_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/options/general_page_gtk.h
diff --git a/chrome/browser/gtk/options/general_page_gtk.h b/chrome/browser/gtk/options/general_page_gtk.h
index f9c48d748e768100b70634fff18faa8260dc3047..c1f6d814860fb27a7db6f0b87f60e58ad622bda6 100644
--- a/chrome/browser/gtk/options/general_page_gtk.h
+++ b/chrome/browser/gtk/options/general_page_gtk.h
@@ -10,13 +10,14 @@
#include <string>
#include <vector>
-#include "chrome/browser/history/history.h"
+#include "chrome/browser/cancelable_request.h"
#include "chrome/browser/options_page_base.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/common/pref_member.h"
#include "googleurl/src/gurl.h"
class Profile;
+class ListStoreFavIconLoader;
class GeneralPageGtk : public OptionsPageBase,
public TemplateURLModelObserver {
@@ -48,16 +49,6 @@ class GeneralPageGtk : public OptionsPageBase,
// Fill a single row in the startup_custom_pages_model_
void PopulateCustomUrlRow(const GURL& url, GtkTreeIter *iter);
- // Find a row from the GetFavIconForURL handle. Returns true if the row was
- // found.
- bool GetRowByFavIconHandle(HistoryService::Handle handle,
- GtkTreeIter* result_iter);
-
- // Callback from HistoryService:::GetFavIconForURL
- void OnGotFavIcon(HistoryService::Handle handle, bool know_fav_icon,
- scoped_refptr<RefCountedBytes> image_data, bool is_expired,
- GURL icon_url);
-
// Set the custom url list using the pages currently open
void SetCustomUrlListFromCurrentPages();
@@ -181,9 +172,8 @@ class GeneralPageGtk : public OptionsPageBase,
// Used in loading favicons.
CancelableRequestConsumer fav_icon_consumer_;
- // Default icon to show when one can't be found for the URL. This is owned by
- // the ResourceBundle and we do not need to free it.
- GdkPixbuf* default_favicon_;
+ // Helper to load the favicon pixbufs into the |startup_custom_pages_model_|.
+ scoped_ptr<ListStoreFavIconLoader> favicon_loader_;
DISALLOW_COPY_AND_ASSIGN(GeneralPageGtk);
};
« no previous file with comments | « chrome/browser/gtk/list_store_favicon_loader.cc ('k') | chrome/browser/gtk/options/general_page_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698