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

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

Issue 113591: Fix Acid3 Test 48: LINKTEST, Chromium side.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Made waiting more bearable. Created 11 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.cc ('k') | chrome/browser/history/history_database.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) 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_HISTORY_DATABASE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "chrome/browser/history/download_database.h" 9 #include "chrome/browser/history/download_database.h"
10 #include "chrome/browser/history/history.h" 10 #include "chrome/browser/history/history.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Visit table functions ---------------------------------------------------- 115 // Visit table functions ----------------------------------------------------
116 116
117 // Update the segment id of a visit. Return true on success. 117 // Update the segment id of a visit. Return true on success.
118 bool SetSegmentID(VisitID visit_id, SegmentID segment_id); 118 bool SetSegmentID(VisitID visit_id, SegmentID segment_id);
119 119
120 // Query the segment ID for the provided visit. Return 0 on failure or if the 120 // Query the segment ID for the provided visit. Return 0 on failure or if the
121 // visit id wasn't found. 121 // visit id wasn't found.
122 SegmentID GetSegmentID(VisitID visit_id); 122 SegmentID GetSegmentID(VisitID visit_id);
123 123
124 // Retrieves/Updates early expiration threshold, which specifies the earliest
125 // known point in history that may possibly to contain visits suitable for
126 // early expiration (AUTO_SUBFRAMES).
127 virtual base::Time GetEarlyExpirationThreshold();
128 virtual void UpdateEarlyExpirationThreshold(base::Time threshold);
129
124 // Drops the starred table and star_id from urls. 130 // Drops the starred table and star_id from urls.
125 bool MigrateFromVersion15ToVersion16(); 131 bool MigrateFromVersion15ToVersion16();
126 132
127 private: 133 private:
128 // Implemented for URLDatabase. 134 // Implemented for URLDatabase.
129 virtual sqlite3* GetDB(); 135 virtual sqlite3* GetDB();
130 virtual SqliteStatementCache& GetStatementCache(); 136 virtual SqliteStatementCache& GetStatementCache();
131 137
132 // Migration ----------------------------------------------------------------- 138 // Migration -----------------------------------------------------------------
133 139
(...skipping 15 matching lines...) Expand all
149 // statement cache. These must be done in a specific order, so we don't want 155 // statement cache. These must be done in a specific order, so we don't want
150 // to rely on C++'s implicit destructors for the individual objects. 156 // to rely on C++'s implicit destructors for the individual objects.
151 // 157 //
152 // The close scoper will free the database and delete the statement cache in 158 // The close scoper will free the database and delete the statement cache in
153 // the correct order automatically when we are destroyed. 159 // the correct order automatically when we are destroyed.
154 DBCloseScoper db_closer_; 160 DBCloseScoper db_closer_;
155 sqlite3* db_; 161 sqlite3* db_;
156 SqliteStatementCache* statement_cache_; 162 SqliteStatementCache* statement_cache_;
157 163
158 MetaTableHelper meta_table_; 164 MetaTableHelper meta_table_;
165 base::Time cached_early_expiration_threshold_;
159 166
160 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); 167 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase);
161 }; 168 };
162 169
163 } // history 170 } // history
164 171
165 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 172 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history.cc ('k') | chrome/browser/history/history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698