OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 return guid; | 194 return guid; |
195 } | 195 } |
196 | 196 |
197 // static | 197 // static |
198 const char* DatabaseBackendBase::databaseInfoTableName() | 198 const char* DatabaseBackendBase::databaseInfoTableName() |
199 { | 199 { |
200 return infoTableName; | 200 return infoTableName; |
201 } | 201 } |
202 | 202 |
203 DatabaseBackendBase::DatabaseBackendBase(PassRefPtr<DatabaseContext> databaseCon
text, const String& name, | 203 DatabaseBackendBase::DatabaseBackendBase(DatabaseContext* databaseContext, const
String& name, |
204 const String& expectedVersion, const String& displayName, unsigned long esti
matedSize, DatabaseType databaseType) | 204 const String& expectedVersion, const String& displayName, unsigned long esti
matedSize, DatabaseType databaseType) |
205 : m_databaseContext(databaseContext) | 205 : m_databaseContext(databaseContext) |
206 , m_name(name.isolatedCopy()) | 206 , m_name(name.isolatedCopy()) |
207 , m_expectedVersion(expectedVersion.isolatedCopy()) | 207 , m_expectedVersion(expectedVersion.isolatedCopy()) |
208 , m_displayName(displayName.isolatedCopy()) | 208 , m_displayName(displayName.isolatedCopy()) |
209 , m_estimatedSize(estimatedSize) | 209 , m_estimatedSize(estimatedSize) |
210 , m_guid(0) | 210 , m_guid(0) |
211 , m_opened(false) | 211 , m_opened(false) |
212 , m_new(false) | 212 , m_new(false) |
213 , m_isSyncDatabase(databaseType == DatabaseType::Sync) | 213 , m_isSyncDatabase(databaseType == DatabaseType::Sync) |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 { | 665 { |
666 executionContext()->addConsoleMessage(StorageMessageSource, ErrorMessageLeve
l, message); | 666 executionContext()->addConsoleMessage(StorageMessageSource, ErrorMessageLeve
l, message); |
667 } | 667 } |
668 | 668 |
669 ExecutionContext* DatabaseBackendBase::executionContext() const | 669 ExecutionContext* DatabaseBackendBase::executionContext() const |
670 { | 670 { |
671 return databaseContext()->executionContext(); | 671 return databaseContext()->executionContext(); |
672 } | 672 } |
673 | 673 |
674 } // namespace WebCore | 674 } // namespace WebCore |
OLD | NEW |