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 <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 private: | 445 private: |
446 friend class base::RefCountedThreadSafe<MostVisitedThumbnails>; | 446 friend class base::RefCountedThreadSafe<MostVisitedThumbnails>; |
447 virtual ~MostVisitedThumbnails(); | 447 virtual ~MostVisitedThumbnails(); |
448 | 448 |
449 DISALLOW_COPY_AND_ASSIGN(MostVisitedThumbnails); | 449 DISALLOW_COPY_AND_ASSIGN(MostVisitedThumbnails); |
450 }; | 450 }; |
451 | 451 |
452 // Map from host to visit count, sorted by visit count descending. | 452 // Map from host to visit count, sorted by visit count descending. |
453 typedef std::vector<std::pair<std::string, int>> TopHostsList; | 453 typedef std::vector<std::pair<std::string, int>> TopHostsList; |
454 | 454 |
| 455 // Statistics ----------------------------------------------------------------- |
| 456 |
| 457 // HistoryCountResult encapsulates the result of a call to |
| 458 // HistoryBackend::GetHistoryCount. |
| 459 struct HistoryCountResult { |
| 460 // Indicates whether the call to HistoryBackend::GetHistoryCount was |
| 461 // successful or not. If false, then |count| is undefined. |
| 462 bool success; |
| 463 int count; |
| 464 }; |
| 465 |
455 // Favicons ------------------------------------------------------------------- | 466 // Favicons ------------------------------------------------------------------- |
456 | 467 |
457 // Used for the mapping between the page and icon. | 468 // Used for the mapping between the page and icon. |
458 struct IconMapping { | 469 struct IconMapping { |
459 IconMapping(); | 470 IconMapping(); |
460 ~IconMapping(); | 471 ~IconMapping(); |
461 | 472 |
462 // The unique id of the mapping. | 473 // The unique id of the mapping. |
463 IconMappingID mapping_id; | 474 IconMappingID mapping_id; |
464 | 475 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 void SetTimeRangeForOneDay(base::Time time); | 531 void SetTimeRangeForOneDay(base::Time time); |
521 | 532 |
522 std::set<GURL> urls; | 533 std::set<GURL> urls; |
523 base::Time begin_time; | 534 base::Time begin_time; |
524 base::Time end_time; | 535 base::Time end_time; |
525 }; | 536 }; |
526 | 537 |
527 } // namespace history | 538 } // namespace history |
528 | 539 |
529 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ | 540 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_TYPES_H_ |
OLD | NEW |