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.h | |
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.h')
-rw-r--r-- | chrome/browser/custom_home_pages_table_model.h | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/chrome/browser/custom_home_pages_table_model.h b/chrome/browser/custom_home_pages_table_model.h index 639d480..4115daa 100644 --- a/chrome/browser/custom_home_pages_table_model.h +++ b/chrome/browser/custom_home_pages_table_model.h @@ -12,10 +12,10 @@ #include "app/table_model.h" #include "chrome/browser/history/history.h" #include "chrome/browser/favicon_service.h" -#include "googleurl/src/gurl.h" -#include "third_party/skia/include/core/SkBitmap.h" +class GURL; class Profile; +class SkBitmap; class TableModelObserver; // CustomHomePagesTableModel is the model for the TableView showing the list @@ -24,7 +24,7 @@ class TableModelObserver; class CustomHomePagesTableModel : public TableModel { public: explicit CustomHomePagesTableModel(Profile* profile); - virtual ~CustomHomePagesTableModel() {} + virtual ~CustomHomePagesTableModel(); // Sets the set of urls that this model contains. void SetURLs(const std::vector<GURL>& urls); @@ -52,24 +52,7 @@ class CustomHomePagesTableModel : public TableModel { private: // Each item in the model is represented as an Entry. Entry stores the URL, // title, and favicon of the page. - struct 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; - }; + struct Entry; // Loads the title and favicon for the specified entry. void LoadTitleAndFavIcon(Entry* entry); |