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

Side by Side Diff: WebCore/storage/Database.h

Issue 596028: Make the DatabaseTracker thread-safe. (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/
Patch Set: '' Created 10 years, 10 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 | « WebCore/platform/sql/SQLiteDatabase.cpp ('k') | WebCore/storage/Database.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 String fileName() const; 98 String fileName() const;
99 99
100 bool getVersionFromDatabase(String&); 100 bool getVersionFromDatabase(String&);
101 bool setVersionInDatabase(const String&); 101 bool setVersionInDatabase(const String&);
102 void setExpectedVersion(const String&); 102 void setExpectedVersion(const String&);
103 bool versionMatchesExpected() const; 103 bool versionMatchesExpected() const;
104 104
105 void markAsDeletedAndClose(); 105 void markAsDeletedAndClose();
106 bool deleted() const { return m_deleted; } 106 bool deleted() const { return m_deleted; }
107 107
108 void close(); 108 void close(bool removeDatabaseFromContext);
109 bool opened() const { return m_opened; } 109 bool opened() const { return m_opened; }
110 110
111 void stop(); 111 void stop();
112 bool stopped() const { return m_stopped; } 112 bool stopped() const { return m_stopped; }
113 113
114 unsigned long long databaseSize() const; 114 unsigned long long databaseSize() const;
115 unsigned long long maximumSize() const; 115 unsigned long long maximumSize() const;
116 116
117 // Called from DatabaseThread, must be prepared to work on the background thread 117 // Called from DatabaseThread, must be prepared to work on the background thread
118 void resetAuthorizer(); 118 void resetAuthorizer();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 namespace WebCore { 174 namespace WebCore {
175 class Database : public ThreadSafeShared<Database> { 175 class Database : public ThreadSafeShared<Database> {
176 public: 176 public:
177 static const String& databaseInfoTableName(); 177 static const String& databaseInfoTableName();
178 }; 178 };
179 } // namespace WebCore 179 } // namespace WebCore
180 180
181 #endif // ENABLE(DATABASE) 181 #endif // ENABLE(DATABASE)
182 182
183 #endif // Database_h 183 #endif // Database_h
OLDNEW
« no previous file with comments | « WebCore/platform/sql/SQLiteDatabase.cpp ('k') | WebCore/storage/Database.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698