OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // Base class used by history view. BaseHistoryModel provides support for | 5 // Base class used by history view. BaseHistoryModel provides support for |
6 // fetching thumbnails and favicons, but not the actual contents that are | 6 // fetching thumbnails and favicons, but not the actual contents that are |
7 // displayed. | 7 // displayed. |
8 | 8 |
9 #ifndef CHROME_BROWSER_BASE_HISTORY_MODEL_H__ | 9 #ifndef CHROME_BROWSER_BASE_HISTORY_MODEL_H__ |
10 #define CHROME_BROWSER_BASE_HISTORY_MODEL_H__ | 10 #define CHROME_BROWSER_BASE_HISTORY_MODEL_H__ |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // The observer, notified of changes to the model or when processing | 43 // The observer, notified of changes to the model or when processing |
44 // begins/ends. | 44 // begins/ends. |
45 void SetObserver(BaseHistoryModelObserver* observer); | 45 void SetObserver(BaseHistoryModelObserver* observer); |
46 BaseHistoryModelObserver* GetObserver() const; | 46 BaseHistoryModelObserver* GetObserver() const; |
47 | 47 |
48 // Returns the number of history items currently in the model. | 48 // Returns the number of history items currently in the model. |
49 virtual int GetItemCount() = 0; | 49 virtual int GetItemCount() = 0; |
50 | 50 |
51 // Returns the time of the visit with the given index. | 51 // Returns the time of the visit with the given index. |
52 virtual Time GetVisitTime(int index) = 0; | 52 virtual base::Time GetVisitTime(int index) = 0; |
53 | 53 |
54 // Returns the title at the specified index. | 54 // Returns the title at the specified index. |
55 virtual const std::wstring& GetTitle(int index) = 0; | 55 virtual const std::wstring& GetTitle(int index) = 0; |
56 | 56 |
57 // Returns the URL at the specified index. | 57 // Returns the URL at the specified index. |
58 virtual const GURL& GetURL(int index) = 0; | 58 virtual const GURL& GetURL(int index) = 0; |
59 | 59 |
60 // Returns the id of the URL at the specified index. | 60 // Returns the id of the URL at the specified index. |
61 virtual history::URLID GetURLID(int index) = 0; | 61 virtual history::URLID GetURLID(int index) = 0; |
62 | 62 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 CacheType thumbnails_; | 177 CacheType thumbnails_; |
178 | 178 |
179 // Keeps track of favicons for pages | 179 // Keeps track of favicons for pages |
180 CacheType favicons_; | 180 CacheType favicons_; |
181 | 181 |
182 DISALLOW_EVIL_CONSTRUCTORS(BaseHistoryModel); | 182 DISALLOW_EVIL_CONSTRUCTORS(BaseHistoryModel); |
183 }; | 183 }; |
184 | 184 |
185 #endif // CHROME_BROWSER_BASE_HISTORY_MODEL_H__ | 185 #endif // CHROME_BROWSER_BASE_HISTORY_MODEL_H__ |
186 | 186 |
OLD | NEW |