summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/options/general_page_gtk.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:23:34 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:23:34 +0000
commiteec14db8dd65f57aedea891a99b9fee6944d3f6a (patch)
tree8204a5ced1827741b3969957d03895c732b504b5 /chrome/browser/gtk/options/general_page_gtk.h
parent63329059634643cb573b323aa03b9fdeda555bd4 (diff)
downloadchromium_src-eec14db8dd65f57aedea891a99b9fee6944d3f6a.zip
chromium_src-eec14db8dd65f57aedea891a99b9fee6944d3f6a.tar.gz
chromium_src-eec14db8dd65f57aedea891a99b9fee6944d3f6a.tar.bz2
Refactor the favicon loader out of gtk/options/general_page_gtk to gtk/list_store_favicon_loader,
so that it can be used by the url_picker_dialog_gtk as well. BUG=11507 Review URL: http://codereview.chromium.org/141035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/general_page_gtk.h')
-rw-r--r--chrome/browser/gtk/options/general_page_gtk.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/chrome/browser/gtk/options/general_page_gtk.h b/chrome/browser/gtk/options/general_page_gtk.h
index f9c48d7..c1f6d81 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);
};