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

Unified Diff: sql/connection.h

Issue 104593010: AppCache: Run a quick integrity check on the sqlite database when opening. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/thumbnail_database.cc ('k') | sql/connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.h
diff --git a/sql/connection.h b/sql/connection.h
index ec76e3be89a133075f287cfb917cdd2c5ba91e30..402b75334e16e15ca9e532e34db7f639ddcfcb35 100644
--- a/sql/connection.h
+++ b/sql/connection.h
@@ -154,7 +154,13 @@ class SQL_EXPORT Connection {
// |messages|. Returns the success of running the statement - per
// the SQLite documentation, if no errors are found the call should
// succeed, and a single value "ok" should be in messages.
- bool IntegrityCheck(std::vector<std::string>* messages);
+ bool FullIntegrityCheck(std::vector<std::string>* messages) {
+ return IntegrityCheck(messages, false);
+ }
+ bool QuickIntegrityCheck(std::vector<std::string>* messages) {
+ return IntegrityCheck(messages, true);
+ }
+ bool IntegrityCheck(std::vector<std::string>* messages, bool quick);
Scott Hess - ex-Googler 2013/12/06 00:44:00 Move IntegrityCheck() to private, maybe call it "I
// Initialization ------------------------------------------------------------
« no previous file with comments | « chrome/browser/history/thumbnail_database.cc ('k') | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698