OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 , m_name(name.isolatedCopy()) | 193 , m_name(name.isolatedCopy()) |
194 , m_expectedVersion(expectedVersion.isolatedCopy()) | 194 , m_expectedVersion(expectedVersion.isolatedCopy()) |
195 , m_displayName(displayName.isolatedCopy()) | 195 , m_displayName(displayName.isolatedCopy()) |
196 , m_estimatedSize(estimatedSize) | 196 , m_estimatedSize(estimatedSize) |
197 , m_guid(0) | 197 , m_guid(0) |
198 , m_opened(false) | 198 , m_opened(false) |
199 , m_new(false) | 199 , m_new(false) |
200 , m_isSyncDatabase(databaseType == SyncDatabase) | 200 , m_isSyncDatabase(databaseType == SyncDatabase) |
201 { | 201 { |
202 ASSERT(context->isContextThread()); | 202 ASSERT(context->isContextThread()); |
203 m_contextThreadSecurityOrigin = m_scriptExecutionContext->securityOrigin(); | 203 m_contextThreadSecurityOrigin = m_scriptExecutionContext->securityOrigin()->
isolatedCopy(); |
204 | 204 |
205 m_databaseAuthorizer = DatabaseAuthorizer::create(infoTableName); | 205 m_databaseAuthorizer = DatabaseAuthorizer::create(infoTableName); |
206 | 206 |
207 if (m_name.isNull()) | 207 if (m_name.isNull()) |
208 m_name = ""; | 208 m_name = ""; |
209 | 209 |
210 { | 210 { |
211 MutexLocker locker(guidMutex()); | 211 MutexLocker locker(guidMutex()); |
212 m_guid = guidForOriginAndName(securityOrigin()->toString(), name); | 212 m_guid = guidForOriginAndName(securityOrigin()->toString(), name); |
213 HashSet<AbstractDatabase*>* hashSet = guidToDatabaseMap().get(m_guid); | 213 HashSet<AbstractDatabase*>* hashSet = guidToDatabaseMap().get(m_guid); |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 void AbstractDatabase::reportChangeVersionResult(int, int, int) { } | 608 void AbstractDatabase::reportChangeVersionResult(int, int, int) { } |
609 void AbstractDatabase::reportStartTransactionResult(int, int, int) { } | 609 void AbstractDatabase::reportStartTransactionResult(int, int, int) { } |
610 void AbstractDatabase::reportCommitTransactionResult(int, int, int) { } | 610 void AbstractDatabase::reportCommitTransactionResult(int, int, int) { } |
611 void AbstractDatabase::reportExecuteStatementResult(int, int, int) { } | 611 void AbstractDatabase::reportExecuteStatementResult(int, int, int) { } |
612 void AbstractDatabase::reportVacuumDatabaseResult(int) { } | 612 void AbstractDatabase::reportVacuumDatabaseResult(int) { } |
613 #endif // PLATFORM(CHROMIUM) | 613 #endif // PLATFORM(CHROMIUM) |
614 | 614 |
615 } // namespace WebCore | 615 } // namespace WebCore |
616 | 616 |
617 #endif // ENABLE(SQL_DATABASE) | 617 #endif // ENABLE(SQL_DATABASE) |
OLD | NEW |