OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 22 matching lines...) Expand all Loading... |
33 // Structure to hold redirect lists for URLs. For a redirect chain | 33 // Structure to hold redirect lists for URLs. For a redirect chain |
34 // A -> B -> C, and entry in the map would look like "A => {B -> C}". | 34 // A -> B -> C, and entry in the map would look like "A => {B -> C}". |
35 typedef std::map<GURL, scoped_refptr<RefCountedVector<GURL> > > RedirectMap; | 35 typedef std::map<GURL, scoped_refptr<RefCountedVector<GURL> > > RedirectMap; |
36 | 36 |
37 // Container for a list of URLs. | 37 // Container for a list of URLs. |
38 typedef std::vector<GURL> RedirectList; | 38 typedef std::vector<GURL> RedirectList; |
39 | 39 |
40 typedef int64 StarID; // Unique identifier for star entries. | 40 typedef int64 StarID; // Unique identifier for star entries. |
41 typedef int64 UIStarID; // Identifier for star entries that come from the UI. | 41 typedef int64 UIStarID; // Identifier for star entries that come from the UI. |
42 typedef int64 DownloadID; // Identifier for a download. | 42 typedef int64 DownloadID; // Identifier for a download. |
43 typedef int64 FavIconID; // For FavIcons. | 43 typedef int64 FaviconID; // For favicons. |
44 typedef int64 SegmentID; // URL segments for the most visited view. | 44 typedef int64 SegmentID; // URL segments for the most visited view. |
45 typedef int64 IconMappingID; // For page url and icon mapping. | 45 typedef int64 IconMappingID; // For page url and icon mapping. |
46 | 46 |
47 // URLRow --------------------------------------------------------------------- | 47 // URLRow --------------------------------------------------------------------- |
48 | 48 |
49 typedef int64 URLID; | 49 typedef int64 URLID; |
50 | 50 |
51 // Holds all information globally associated with one URL (one row in the | 51 // Holds all information globally associated with one URL (one row in the |
52 // URL table). | 52 // URL table). |
53 // | 53 // |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 IconMapping(); | 690 IconMapping(); |
691 ~IconMapping(); | 691 ~IconMapping(); |
692 | 692 |
693 // The unique id of the mapping. | 693 // The unique id of the mapping. |
694 IconMappingID mapping_id; | 694 IconMappingID mapping_id; |
695 | 695 |
696 // The url of a web page. | 696 // The url of a web page. |
697 GURL page_url; | 697 GURL page_url; |
698 | 698 |
699 // The unique id of the icon. | 699 // The unique id of the icon. |
700 FavIconID icon_id; | 700 FaviconID icon_id; |
701 | 701 |
702 // The type of icon. | 702 // The type of icon. |
703 IconType icon_type; | 703 IconType icon_type; |
704 }; | 704 }; |
705 | 705 |
706 } // namespace history | 706 } // namespace history |
707 | 707 |
708 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ | 708 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ |
OLD | NEW |