| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ |
| 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 // not visiting its page). For this reason, their life-time cannot be bound to | 517 // not visiting its page). For this reason, their life-time cannot be bound to |
| 518 // the life-time of the corresponding visit in history. | 518 // the life-time of the corresponding visit in history. |
| 519 // - These bitmaps are evicted from the database based on the last time they | 519 // - These bitmaps are evicted from the database based on the last time they |
| 520 // were requested. | 520 // were requested. |
| 521 // - Furthermore, on-demand bitmaps are immediately marked as expired. Hence, | 521 // - Furthermore, on-demand bitmaps are immediately marked as expired. Hence, |
| 522 // they are always replaced by ON_VISIT favicons whenever their page gets | 522 // they are always replaced by ON_VISIT favicons whenever their page gets |
| 523 // visited. | 523 // visited. |
| 524 ON_DEMAND | 524 ON_DEMAND |
| 525 }; | 525 }; |
| 526 | 526 |
| 527 // Defines all associated mappings of a given favicon. |
| 528 struct IconMappingsForExpiry { |
| 529 IconMappingsForExpiry(); |
| 530 IconMappingsForExpiry(const IconMappingsForExpiry& other); |
| 531 ~IconMappingsForExpiry(); |
| 532 |
| 533 // URL of a given favicon. |
| 534 GURL icon_url; |
| 535 // URLs of all pages mapped to a given favicon |
| 536 std::vector<GURL> page_urls; |
| 537 }; |
| 538 |
| 527 // Defines a favicon bitmap stored in the history backend. | 539 // Defines a favicon bitmap stored in the history backend. |
| 528 struct FaviconBitmap { | 540 struct FaviconBitmap { |
| 529 FaviconBitmap(); | 541 FaviconBitmap(); |
| 530 FaviconBitmap(const FaviconBitmap& other); | 542 FaviconBitmap(const FaviconBitmap& other); |
| 531 ~FaviconBitmap(); | 543 ~FaviconBitmap(); |
| 532 | 544 |
| 533 // The unique id of the bitmap. | 545 // The unique id of the bitmap. |
| 534 FaviconBitmapID bitmap_id = 0; | 546 FaviconBitmapID bitmap_id = 0; |
| 535 | 547 |
| 536 // The id of the favicon to which the bitmap belongs to. | 548 // The id of the favicon to which the bitmap belongs to. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 559 void SetTimeRangeForOneDay(base::Time time); | 571 void SetTimeRangeForOneDay(base::Time time); |
| 560 | 572 |
| 561 std::set<GURL> urls; | 573 std::set<GURL> urls; |
| 562 base::Time begin_time; | 574 base::Time begin_time; |
| 563 base::Time end_time; | 575 base::Time end_time; |
| 564 }; | 576 }; |
| 565 | 577 |
| 566 } // namespace history | 578 } // namespace history |
| 567 | 579 |
| 568 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ | 580 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ |
| OLD | NEW |