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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 // TopSites ------------------------------------------------------------------- | 586 // TopSites ------------------------------------------------------------------- |
587 | 587 |
588 typedef std::vector<MostVisitedURL> MostVisitedURLList; | 588 typedef std::vector<MostVisitedURL> MostVisitedURLList; |
589 typedef std::vector<FilteredURL> FilteredURLList; | 589 typedef std::vector<FilteredURL> FilteredURLList; |
590 | 590 |
591 // Used by TopSites to store the thumbnails. | 591 // Used by TopSites to store the thumbnails. |
592 struct Images { | 592 struct Images { |
593 Images(); | 593 Images(); |
594 ~Images(); | 594 ~Images(); |
595 | 595 |
596 scoped_refptr<base::RefCountedBytes> thumbnail; | 596 scoped_refptr<base::RefCountedMemory> thumbnail; |
597 ThumbnailScore thumbnail_score; | 597 ThumbnailScore thumbnail_score; |
598 | 598 |
599 // TODO(brettw): this will eventually store the favicon. | 599 // TODO(brettw): this will eventually store the favicon. |
600 // scoped_refptr<base::RefCountedBytes> favicon; | 600 // scoped_refptr<base::RefCountedBytes> favicon; |
601 }; | 601 }; |
602 | 602 |
603 typedef std::vector<MostVisitedURL> MostVisitedURLList; | 603 typedef std::vector<MostVisitedURL> MostVisitedURLList; |
604 | 604 |
605 struct MostVisitedURLWithRank { | 605 struct MostVisitedURLWithRank { |
606 MostVisitedURL url; | 606 MostVisitedURL url; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 void SetTimeRangeForOneDay(base::Time time); | 831 void SetTimeRangeForOneDay(base::Time time); |
832 | 832 |
833 std::set<GURL> urls; | 833 std::set<GURL> urls; |
834 base::Time begin_time; | 834 base::Time begin_time; |
835 base::Time end_time; | 835 base::Time end_time; |
836 }; | 836 }; |
837 | 837 |
838 } // namespace history | 838 } // namespace history |
839 | 839 |
840 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ | 840 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ |
OLD | NEW |