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

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

Issue 16951015: Remove TextDatabase from the history service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replace_fts
Patch Set: Sync and rebase. Created 7 years, 5 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
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/history/history_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // 0 indicates no referrer. 239 // 0 indicates no referrer.
240 VisitID referring_visit; 240 VisitID referring_visit;
241 241
242 // A combination of bits from PageTransition. 242 // A combination of bits from PageTransition.
243 content::PageTransition transition; 243 content::PageTransition transition;
244 244
245 // The segment id (see visitsegment_database.*). 245 // The segment id (see visitsegment_database.*).
246 // If 0, the segment id is null in the table. 246 // If 0, the segment id is null in the table.
247 SegmentID segment_id; 247 SegmentID segment_id;
248 248
249 // True when this visit has indexed data for it. We try to keep this in sync
250 // with the full text index: when we add or remove things from there, we will
251 // update the visit table as well. However, that file could get deleted, or
252 // out of sync in various ways, so this flag should be false when things
253 // change.
254 bool is_indexed;
255
256 // Record how much time a user has this visit starting from the user 249 // Record how much time a user has this visit starting from the user
257 // opened this visit to the user closed or ended this visit. 250 // opened this visit to the user closed or ended this visit.
258 // This includes both active and inactive time as long as 251 // This includes both active and inactive time as long as
259 // the visit was present. 252 // the visit was present.
260 base::TimeDelta visit_duration; 253 base::TimeDelta visit_duration;
261 254
262 // Compares two visits based on dates, for sorting. 255 // Compares two visits based on dates, for sorting.
263 bool operator<(const VisitRow& other) { 256 bool operator<(const VisitRow& other) {
264 return visit_time < other.visit_time; 257 return visit_time < other.visit_time;
265 } 258 }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 base::Time end_time; 446 base::Time end_time;
454 447
455 // Sets the query time to the last |days_ago| days to the present time. 448 // Sets the query time to the last |days_ago| days to the present time.
456 void SetRecentDayRange(int days_ago); 449 void SetRecentDayRange(int days_ago);
457 450
458 // The maximum number of results to return. The results will be sorted with 451 // The maximum number of results to return. The results will be sorted with
459 // the most recent first, so older results may not be returned if there is not 452 // the most recent first, so older results may not be returned if there is not
460 // enough room. When 0, this will return everything (the default). 453 // enough room. When 0, this will return everything (the default).
461 int max_count; 454 int max_count;
462 455
463 // Only search within the page body if true, otherwise search all columns
464 // including url and time. Defaults to false.
465 bool body_only;
466
467 enum DuplicateHandling { 456 enum DuplicateHandling {
468 // Omit visits for which there is a more recent visit to the same URL. 457 // Omit visits for which there is a more recent visit to the same URL.
469 // Each URL in the results will appear only once. 458 // Each URL in the results will appear only once.
470 REMOVE_ALL_DUPLICATES, 459 REMOVE_ALL_DUPLICATES,
471 460
472 // Omit visits for which there is a more recent visit to the same URL on 461 // Omit visits for which there is a more recent visit to the same URL on
473 // the same day. Each URL will appear no more than once per day, where the 462 // the same day. Each URL will appear no more than once per day, where the
474 // day is defined by the local timezone. 463 // day is defined by the local timezone.
475 REMOVE_DUPLICATES_PER_DAY, 464 REMOVE_DUPLICATES_PER_DAY,
476 465
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 void SetTimeRangeForOneDay(base::Time time); 742 void SetTimeRangeForOneDay(base::Time time);
754 743
755 std::set<GURL> urls; 744 std::set<GURL> urls;
756 base::Time begin_time; 745 base::Time begin_time;
757 base::Time end_time; 746 base::Time end_time;
758 }; 747 };
759 748
760 } // namespace history 749 } // namespace history
761 750
762 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_ 751 #endif // CHROME_BROWSER_HISTORY_HISTORY_TYPES_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/history/history_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698