OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_HISTORY_HISTORY_TYPES_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 // TopSites ------------------------------------------------------------------- | 594 // TopSites ------------------------------------------------------------------- |
595 | 595 |
596 typedef std::vector<MostVisitedURL> MostVisitedURLList; | 596 typedef std::vector<MostVisitedURL> MostVisitedURLList; |
597 typedef std::vector<FilteredURL> FilteredURLList; | 597 typedef std::vector<FilteredURL> FilteredURLList; |
598 | 598 |
599 // Used by TopSites to store the thumbnails. | 599 // Used by TopSites to store the thumbnails. |
600 struct Images { | 600 struct Images { |
601 Images(); | 601 Images(); |
602 ~Images(); | 602 ~Images(); |
603 | 603 |
604 scoped_refptr<base::RefCountedBytes> thumbnail; | 604 scoped_refptr<base::RefCountedMemory> thumbnail; |
605 ThumbnailScore thumbnail_score; | 605 ThumbnailScore thumbnail_score; |
606 | 606 |
607 // TODO(brettw): this will eventually store the favicon. | 607 // TODO(brettw): this will eventually store the favicon. |
608 // scoped_refptr<base::RefCountedBytes> favicon; | 608 // scoped_refptr<base::RefCountedBytes> favicon; |
609 }; | 609 }; |
610 | 610 |
611 typedef std::vector<MostVisitedURL> MostVisitedURLList; | 611 typedef std::vector<MostVisitedURL> MostVisitedURLList; |
612 | 612 |
613 struct MostVisitedURLWithRank { | 613 struct MostVisitedURLWithRank { |
614 MostVisitedURL url; | 614 MostVisitedURL url; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 void SetTimeRangeForOneDay(base::Time time); | 839 void SetTimeRangeForOneDay(base::Time time); |
840 | 840 |
841 std::set<GURL> urls; | 841 std::set<GURL> urls; |
842 base::Time begin_time; | 842 base::Time begin_time; |
843 base::Time end_time; | 843 base::Time end_time; |
844 }; | 844 }; |
845 | 845 |
846 } // namespace history | 846 } // namespace history |
847 | 847 |
848 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ | 848 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ |
OLD | NEW |