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/possible_url_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/possible_url_model.h')
-rw-r--r-- | chrome/browser/possible_url_model.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/chrome/browser/possible_url_model.h b/chrome/browser/possible_url_model.h index d1afa8c..e586af0 100644 --- a/chrome/browser/possible_url_model.h +++ b/chrome/browser/possible_url_model.h @@ -11,10 +11,9 @@ #include <vector> #include "app/table_model.h" -#include "app/text_elider.h" -#include "base/string_util.h" #include "chrome/browser/history/history.h" -#include "third_party/skia/include/core/SkBitmap.h" + +class SkBitmap; //////////////////////////////////////////////////////////////////////////////// // @@ -26,18 +25,14 @@ class PossibleURLModel : public TableModel { public: PossibleURLModel(); - - virtual ~PossibleURLModel() { - } + virtual ~PossibleURLModel(); void Reload(Profile *profile); void OnHistoryQueryComplete(HistoryService::Handle h, history::QueryResults* result); - virtual int RowCount() { - return static_cast<int>(results_.size()); - } + virtual int RowCount(); const GURL& GetURL(int row); @@ -60,19 +55,6 @@ class PossibleURLModel : public TableModel { } private: - // Contains the data needed to show a result. - struct Result { - Result() : index(0) {} - - GURL url; - // Index of this Result in results_. This is used as the key into - // fav_icon_map_ to lookup the favicon for the url, as well as the index - // into results_ when the favicon is received. - size_t index; - gfx::SortedDisplayURL display_url; - std::wstring title; - }; - // The current profile. Profile* profile_; @@ -83,6 +65,7 @@ class PossibleURLModel : public TableModel { CancelableRequestConsumerT<size_t, NULL> consumer_; // The results we're showing. + struct Result; std::vector<Result> results_; // Map Result::index -> Favicon. |