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

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

Issue 2395473002: reflow comments in modules/webdatabase (Closed)
Patch Set: Created 4 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 int runVacuumCommand(); 72 int runVacuumCommand();
73 int runIncrementalVacuumCommand(); 73 int runIncrementalVacuumCommand();
74 74
75 bool transactionInProgress() const { return m_transactionInProgress; } 75 bool transactionInProgress() const { return m_transactionInProgress; }
76 76
77 int64_t lastInsertRowID(); 77 int64_t lastInsertRowID();
78 int lastChanges(); 78 int lastChanges();
79 79
80 void setBusyTimeout(int ms); 80 void setBusyTimeout(int ms);
81 81
82 // Sets the maximum size in bytes 82 // Sets the maximum size in bytes.
83 // Depending on per-database attributes, the size will only be settable in uni ts that are the page size of the database, which is established at creation 83 // Depending on per-database attributes, the size will only be settable in
84 // These chunks will never be anything other than 512, 1024, 2048, 4096, 8192, 16384, or 32768 bytes in size. 84 // units that are the page size of the database, which is established at
85 // setMaximumSize() will round the size down to the next smallest chunk if the passed size doesn't align. 85 // creation. These chunks will never be anything other than 512, 1024, 2048,
86 // 4096, 8192, 16384, or 32768 bytes in size. setMaximumSize() will round the
87 // size down to the next smallest chunk if the passed size doesn't align.
86 void setMaximumSize(int64_t); 88 void setMaximumSize(int64_t);
87 89
88 // Gets the number of unused bytes in the database file. 90 // Gets the number of unused bytes in the database file.
89 int64_t freeSpaceSize(); 91 int64_t freeSpaceSize();
90 int64_t totalSize(); 92 int64_t totalSize();
91 93
92 int lastError(); 94 int lastError();
93 const char* lastErrorMsg(); 95 const char* lastErrorMsg();
94 96
95 sqlite3* sqlite3Handle() const { 97 sqlite3* sqlite3Handle() const {
96 ASSERT(m_sharable || currentThread() == m_openingThread || !m_db); 98 ASSERT(m_sharable || currentThread() == m_openingThread || !m_db);
97 return m_db; 99 return m_db;
98 } 100 }
99 101
100 void setAuthorizer(DatabaseAuthorizer*); 102 void setAuthorizer(DatabaseAuthorizer*);
101 103
102 bool isAutoCommitOn() const; 104 bool isAutoCommitOn() const;
103 105
104 // 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.
105 // NONE - SQLite does not do any vacuuming 107 // NONE - SQLite does not do any vacuuming
106 // 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
107 // the file to remove those pages after every transaction. This option 109 // the file to remove those pages after every transaction. This option
108 // requires SQLite to store additional information about each page in 110 // requires SQLite to store additional information about each page in
109 // the database file. 111 // the database file.
110 // INCREMENTAL - SQLite stores extra information for each page in the database 112 // INCREMENTAL - SQLite stores extra information for each page in the database
111 // file, but removes the empty pages only when PRAGMA INCREMANTA L_VACUUM 113 // file, but removes the empty pages only when PRAGMA
112 // is called. 114 // INCREMANTAL_VACUUM is called.
113 enum AutoVacuumPragma { 115 enum AutoVacuumPragma {
114 AutoVacuumNone = 0, 116 AutoVacuumNone = 0,
115 AutoVacuumFull = 1, 117 AutoVacuumFull = 1,
116 AutoVacuumIncremental = 2 118 AutoVacuumIncremental = 2
117 }; 119 };
118 bool turnOnIncrementalAutoVacuum(); 120 bool turnOnIncrementalAutoVacuum();
119 121
120 DEFINE_INLINE_TRACE() {} 122 DEFINE_INLINE_TRACE() {}
121 123
122 private: 124 private:
(...skipping 23 matching lines...) Expand all
146 148
147 int m_openError; 149 int m_openError;
148 CString m_openErrorMessage; 150 CString m_openErrorMessage;
149 151
150 int m_lastChangesCount; 152 int m_lastChangesCount;
151 }; 153 };
152 154
153 } // namespace blink 155 } // namespace blink
154 156
155 #endif 157 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698