Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: chrome/browser/history/history_types.h

Issue 6693021: fav icon -> favicon. Pass 5: fav_icon -> favicon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 // called. Since getting system time can be costly (such as for cases where 673 // called. Since getting system time can be costly (such as for cases where
674 // this function will be called in a loop over many history items), you can 674 // this function will be called in a loop over many history items), you can
675 // provide a non-null |time_cache| by simply initializing |time_cache| with 675 // provide a non-null |time_cache| by simply initializing |time_cache| with
676 // AutocompleteAgeThreshold() (or any other desired time in the past). 676 // AutocompleteAgeThreshold() (or any other desired time in the past).
677 bool RowQualifiesAsSignificant(const URLRow& row, const base::Time& threshold); 677 bool RowQualifiesAsSignificant(const URLRow& row, const base::Time& threshold);
678 678
679 // Defines the icon types. They are also stored in icon_type field of favicons 679 // Defines the icon types. They are also stored in icon_type field of favicons
680 // table. 680 // table.
681 enum IconType { 681 enum IconType {
682 INVALID_ICON = 0x0, 682 INVALID_ICON = 0x0,
683 FAV_ICON = 1 << 0, 683 FAVICON = 1 << 0,
684 TOUCH_ICON = 1 << 1, 684 TOUCH_ICON = 1 << 1,
685 TOUCH_PRECOMPOSED_ICON = 1 << 2 685 TOUCH_PRECOMPOSED_ICON = 1 << 2
686 }; 686 };
687 687
688 // Used for the mapping between the page and icon. 688 // Used for the mapping between the page and icon.
689 struct IconMapping { 689 struct IconMapping {
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_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_backend_unittest.cc ('k') | chrome/browser/history/thumbnail_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698