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

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

Issue 3461019: FBTF: Move virtual methods to implementation files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win+chromeos+mac fixes Created 10 years, 3 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual SkBitmap GetIcon(int row); 43 virtual SkBitmap GetIcon(int row);
44 44
45 virtual int CompareValues(int row1, int row2, int column_id); 45 virtual int CompareValues(int row1, int row2, int column_id);
46 46
47 virtual void OnFavIconAvailable(FaviconService::Handle h, 47 virtual void OnFavIconAvailable(FaviconService::Handle h,
48 bool fav_icon_available, 48 bool fav_icon_available,
49 scoped_refptr<RefCountedMemory> data, 49 scoped_refptr<RefCountedMemory> data,
50 bool expired, 50 bool expired,
51 GURL icon_url); 51 GURL icon_url);
52 52
53 virtual void SetObserver(TableModelObserver* observer) { 53 virtual void SetObserver(TableModelObserver* observer);
54 observer_ = observer;
55 }
56 54
57 private: 55 private:
58 // The current profile. 56 // The current profile.
59 Profile* profile_; 57 Profile* profile_;
60 58
61 // Our observer. 59 // Our observer.
62 TableModelObserver* observer_; 60 TableModelObserver* observer_;
63 61
64 // Our consumer for favicon requests. 62 // Our consumer for favicon requests.
65 CancelableRequestConsumerT<size_t, NULL> consumer_; 63 CancelableRequestConsumerT<size_t, NULL> consumer_;
66 64
67 // The results we're showing. 65 // The results we're showing.
68 struct Result; 66 struct Result;
69 std::vector<Result> results_; 67 std::vector<Result> results_;
70 68
71 // Map Result::index -> Favicon. 69 // Map Result::index -> Favicon.
72 typedef std::map<size_t, SkBitmap> FavIconMap; 70 typedef std::map<size_t, SkBitmap> FavIconMap;
73 FavIconMap fav_icon_map_; 71 FavIconMap fav_icon_map_;
74 72
75 DISALLOW_COPY_AND_ASSIGN(PossibleURLModel); 73 DISALLOW_COPY_AND_ASSIGN(PossibleURLModel);
76 }; 74 };
77 75
78 #endif // CHROME_BROWSER_POSSIBLE_URL_MODEL_H_ 76 #endif // CHROME_BROWSER_POSSIBLE_URL_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698