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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_STARRED_URL_DATABASE_H__ 5 #ifndef CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H__
6 #define CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H__ 6 #define CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H__
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool GetAllStarredEntries(std::vector<StarredEntry>* entries); 66 bool GetAllStarredEntries(std::vector<StarredEntry>* entries);
67 67
68 // Sets the title, parent_id, parent_group_id, visual_order and date_modifed 68 // Sets the title, parent_id, parent_group_id, visual_order and date_modifed
69 // of the specified star entry. 69 // of the specified star entry.
70 // 70 //
71 // WARNING: Does not update the visual order. 71 // WARNING: Does not update the visual order.
72 bool UpdateStarredEntryRow(StarID star_id, 72 bool UpdateStarredEntryRow(StarID star_id,
73 const std::wstring& title, 73 const std::wstring& title,
74 UIStarID parent_group_id, 74 UIStarID parent_group_id,
75 int visual_order, 75 int visual_order,
76 Time date_modified); 76 base::Time date_modified);
77 77
78 // Adjusts the visual order of all children of parent_group_id with a 78 // Adjusts the visual order of all children of parent_group_id with a
79 // visual_order >= start_visual_order by delta. For example, 79 // visual_order >= start_visual_order by delta. For example,
80 // AdjustStarredVisualOrder(10, 0, 1) increments the visual order all children 80 // AdjustStarredVisualOrder(10, 0, 1) increments the visual order all children
81 // of group 10 with a visual order >= 0 by 1. 81 // of group 10 with a visual order >= 0 by 1.
82 bool AdjustStarredVisualOrder(UIStarID parent_group_id, 82 bool AdjustStarredVisualOrder(UIStarID parent_group_id,
83 int start_visual_order, 83 int start_visual_order,
84 int delta); 84 int delta);
85 85
86 // Creates a starred entry with the specified parameters in the database. 86 // Creates a starred entry with the specified parameters in the database.
87 // Returns the newly created id, or 0 on failure. 87 // Returns the newly created id, or 0 on failure.
88 // 88 //
89 // WARNING: Does not update the visual order. 89 // WARNING: Does not update the visual order.
90 StarID CreateStarredEntryRow(URLID url_id, 90 StarID CreateStarredEntryRow(URLID url_id,
91 UIStarID group_id, 91 UIStarID group_id,
92 UIStarID parent_group_id, 92 UIStarID parent_group_id,
93 const std::wstring& title, 93 const std::wstring& title,
94 const Time& date_added, 94 const base::Time& date_added,
95 int visual_order, 95 int visual_order,
96 StarredEntry::Type type); 96 StarredEntry::Type type);
97 97
98 // Deletes the entry from the starred database base on the starred id (NOT 98 // Deletes the entry from the starred database base on the starred id (NOT
99 // the url id). 99 // the url id).
100 // 100 //
101 // WARNING: Does not update the visual order. 101 // WARNING: Does not update the visual order.
102 bool DeleteStarredEntryRow(StarID star_id); 102 bool DeleteStarredEntryRow(StarID star_id);
103 103
104 // Gets the details for the specified star entry in entry. 104 // Gets the details for the specified star entry in entry.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // BookmarkStorage will read from. 177 // BookmarkStorage will read from.
178 bool MigrateBookmarksToFileImpl(const std::wstring& path); 178 bool MigrateBookmarksToFileImpl(const std::wstring& path);
179 179
180 DISALLOW_EVIL_CONSTRUCTORS(StarredURLDatabase); 180 DISALLOW_EVIL_CONSTRUCTORS(StarredURLDatabase);
181 }; 181 };
182 182
183 } // namespace history 183 } // namespace history
184 184
185 #endif // CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H__ 185 #endif // CHROME_BROWSER_HISTORY_STARRED_URL_DATABASE_H__
186 186
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698