diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 20:25:01 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 20:25:01 +0000 |
commit | c3a4bd9985658b8a5b229983a3ed85042005f0cf (patch) | |
tree | 6200f270a1063021b79c9d304dfe8a619fe86445 /chrome/browser/custom_home_pages_table_model.cc | |
parent | 55a0ffd864ee04c0b76cbed90cb7f00aabed1192 (diff) | |
download | chromium_src-c3a4bd9985658b8a5b229983a3ed85042005f0cf.zip chromium_src-c3a4bd9985658b8a5b229983a3ed85042005f0cf.tar.gz chromium_src-c3a4bd9985658b8a5b229983a3ed85042005f0cf.tar.bz2 |
FBTF: Remove a few SkBitmap instances (and other headers that were next to them).
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3161027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56590 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/custom_home_pages_table_model.cc')
-rw-r--r-- | chrome/browser/custom_home_pages_table_model.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/browser/custom_home_pages_table_model.cc b/chrome/browser/custom_home_pages_table_model.cc index 32cb780..e76efb8 100644 --- a/chrome/browser/custom_home_pages_table_model.cc +++ b/chrome/browser/custom_home_pages_table_model.cc @@ -17,9 +17,30 @@ #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" #include "gfx/codec/png_codec.h" +#include "googleurl/src/gurl.h" #include "grit/app_resources.h" #include "grit/generated_resources.h" #include "net/base/net_util.h" +#include "third_party/skia/include/core/SkBitmap.h" + +struct CustomHomePagesTableModel::Entry { + Entry() : title_handle(0), fav_icon_handle(0) {} + + // URL of the page. + GURL url; + + // Page title. If this is empty, we'll display the URL as the entry. + std::wstring title; + + // Icon for the page. + SkBitmap icon; + + // If non-zero, indicates we're loading the title for the page. + HistoryService::Handle title_handle; + + // If non-zero, indicates we're loading the favicon for the page. + FaviconService::Handle fav_icon_handle; +}; CustomHomePagesTableModel::CustomHomePagesTableModel(Profile* profile) : default_favicon_(NULL), @@ -29,6 +50,9 @@ CustomHomePagesTableModel::CustomHomePagesTableModel(Profile* profile) default_favicon_ = rb.GetBitmapNamed(IDR_DEFAULT_FAVICON); } +CustomHomePagesTableModel::~CustomHomePagesTableModel() { +} + void CustomHomePagesTableModel::SetURLs(const std::vector<GURL>& urls) { entries_.resize(urls.size()); for (size_t i = 0; i < urls.size(); ++i) { |