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

Side by Side Diff: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteDatabase.h

Issue 2813433002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/webdatabase (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/webdatabase Created 3 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com) 3 * Copyright (C) 2007 Justin Haygood (jhaygood@reaktix.com)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void SetMaximumSize(int64_t); 88 void SetMaximumSize(int64_t);
89 89
90 // Gets the number of unused bytes in the database file. 90 // Gets the number of unused bytes in the database file.
91 int64_t FreeSpaceSize(); 91 int64_t FreeSpaceSize();
92 int64_t TotalSize(); 92 int64_t TotalSize();
93 93
94 int LastError(); 94 int LastError();
95 const char* LastErrorMsg(); 95 const char* LastErrorMsg();
96 96
97 sqlite3* Sqlite3Handle() const { 97 sqlite3* Sqlite3Handle() const {
98 ASSERT(sharable_ || CurrentThread() == opening_thread_ || !db_); 98 DCHECK_EQ(sharable_ || CurrentThread(), opening_thread_ || !db_);
99 return db_; 99 return db_;
100 } 100 }
101 101
102 void SetAuthorizer(DatabaseAuthorizer*); 102 void SetAuthorizer(DatabaseAuthorizer*);
103 103
104 bool IsAutoCommitOn() const; 104 bool IsAutoCommitOn() const;
105 105
106 // The SQLite AUTO_VACUUM pragma can be either NONE, FULL, or INCREMENTAL. 106 // The SQLite AUTO_VACUUM pragma can be either NONE, FULL, or INCREMENTAL.
107 // NONE - SQLite does not do any vacuuming 107 // NONE - SQLite does not do any vacuuming
108 // FULL - SQLite moves all empty pages to the end of the DB file and truncates 108 // FULL - SQLite moves all empty pages to the end of the DB file and truncates
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 148
149 int open_error_; 149 int open_error_;
150 CString open_error_message_; 150 CString open_error_message_;
151 151
152 int last_changes_count_; 152 int last_changes_count_;
153 }; 153 };
154 154
155 } // namespace blink 155 } // namespace blink
156 156
157 #endif 157 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698