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

Side by Side Diff: Source/WebCore/Modules/webdatabase/AbstractDatabase.cpp

Issue 12094043: Merge 141057 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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 | « no previous file | no next file » | 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) 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
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
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)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698