| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2013 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 11 matching lines...) Expand all Loading... |
| 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef DatabaseTracker_h | 29 #ifndef DatabaseTracker_h |
| 30 #define DatabaseTracker_h | 30 #define DatabaseTracker_h |
| 31 | 31 |
| 32 #if ENABLE(SQL_DATABASE) | |
| 33 | |
| 34 #include "DatabaseError.h" | 32 #include "DatabaseError.h" |
| 35 #include <wtf/HashMap.h> | 33 #include <wtf/HashMap.h> |
| 36 #include <wtf/HashSet.h> | 34 #include <wtf/HashSet.h> |
| 37 #include <wtf/text/StringHash.h> | 35 #include <wtf/text/StringHash.h> |
| 38 #include <wtf/text/WTFString.h> | 36 #include <wtf/text/WTFString.h> |
| 39 | 37 |
| 40 #if !PLATFORM(CHROMIUM) | 38 #if !PLATFORM(CHROMIUM) |
| 41 #include "DatabaseDetails.h" | 39 #include "DatabaseDetails.h" |
| 42 #include "SQLiteDatabase.h" | 40 #include "SQLiteDatabase.h" |
| 43 #include "SecurityOriginHash.h" | 41 #include "SecurityOriginHash.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 194 |
| 197 void closeOneDatabaseImmediately(const String& originIdentifier, const Strin
g& name, DatabaseBackendBase*); | 195 void closeOneDatabaseImmediately(const String& originIdentifier, const Strin
g& name, DatabaseBackendBase*); |
| 198 | 196 |
| 199 Mutex m_openDatabaseMapGuard; | 197 Mutex m_openDatabaseMapGuard; |
| 200 mutable OwnPtr<DatabaseOriginMap> m_openDatabaseMap; | 198 mutable OwnPtr<DatabaseOriginMap> m_openDatabaseMap; |
| 201 #endif // PLATFORM(CHROMIUM) | 199 #endif // PLATFORM(CHROMIUM) |
| 202 }; | 200 }; |
| 203 | 201 |
| 204 } // namespace WebCore | 202 } // namespace WebCore |
| 205 | 203 |
| 206 #endif // ENABLE(SQL_DATABASE) | |
| 207 | |
| 208 #endif // DatabaseTracker_h | 204 #endif // DatabaseTracker_h |
| OLD | NEW |