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

Side by Side Diff: chrome/browser/possible_url_model.h

Issue 6693021: fav icon -> favicon. Pass 5: fav_icon -> favicon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/jumplist_win.cc ('k') | chrome/browser/possible_url_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POSSIBLE_URL_MODEL_H_ 5 #ifndef CHROME_BROWSER_POSSIBLE_URL_MODEL_H_
6 #define CHROME_BROWSER_POSSIBLE_URL_MODEL_H_ 6 #define CHROME_BROWSER_POSSIBLE_URL_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 19 matching lines...) Expand all
30 30
31 void Reload(Profile *profile); 31 void Reload(Profile *profile);
32 32
33 void OnHistoryQueryComplete(HistoryService::Handle h, 33 void OnHistoryQueryComplete(HistoryService::Handle h,
34 history::QueryResults* result); 34 history::QueryResults* result);
35 35
36 const GURL& GetURL(int row); 36 const GURL& GetURL(int row);
37 const std::wstring& GetTitle(int row); 37 const std::wstring& GetTitle(int row);
38 38
39 virtual void OnFavIconAvailable(FaviconService::Handle h, 39 virtual void OnFavIconAvailable(FaviconService::Handle h,
40 bool fav_icon_available, 40 bool favicon_available,
41 scoped_refptr<RefCountedMemory> data, 41 scoped_refptr<RefCountedMemory> data,
42 bool expired, 42 bool expired,
43 GURL icon_url); 43 GURL icon_url);
44 44
45 // TableModel overrides 45 // TableModel overrides
46 virtual int RowCount() OVERRIDE; 46 virtual int RowCount() OVERRIDE;
47 virtual string16 GetText(int row, int col_id) OVERRIDE; 47 virtual string16 GetText(int row, int col_id) OVERRIDE;
48 virtual SkBitmap GetIcon(int row) OVERRIDE; 48 virtual SkBitmap GetIcon(int row) OVERRIDE;
49 virtual int CompareValues(int row1, int row2, int column_id) OVERRIDE; 49 virtual int CompareValues(int row1, int row2, int column_id) OVERRIDE;
50 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE; 50 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE;
51 51
52 private: 52 private:
53 // The current profile. 53 // The current profile.
54 Profile* profile_; 54 Profile* profile_;
55 55
56 // Our observer. 56 // Our observer.
57 ui::TableModelObserver* observer_; 57 ui::TableModelObserver* observer_;
58 58
59 // Our consumer for favicon requests. 59 // Our consumer for favicon requests.
60 CancelableRequestConsumerT<size_t, NULL> consumer_; 60 CancelableRequestConsumerT<size_t, NULL> consumer_;
61 61
62 // The results we're showing. 62 // The results we're showing.
63 struct Result; 63 struct Result;
64 std::vector<Result> results_; 64 std::vector<Result> results_;
65 65
66 // Map Result::index -> Favicon. 66 // Map Result::index -> Favicon.
67 typedef std::map<size_t, SkBitmap> FavIconMap; 67 typedef std::map<size_t, SkBitmap> FavIconMap;
68 FavIconMap fav_icon_map_; 68 FavIconMap favicon_map_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(PossibleURLModel); 70 DISALLOW_COPY_AND_ASSIGN(PossibleURLModel);
71 }; 71 };
72 72
73 #endif // CHROME_BROWSER_POSSIBLE_URL_MODEL_H_ 73 #endif // CHROME_BROWSER_POSSIBLE_URL_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/jumplist_win.cc ('k') | chrome/browser/possible_url_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698