OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 ec = IDBDatabaseException::ReadOnlyError; | 148 ec = IDBDatabaseException::ReadOnlyError; |
149 return 0; | 149 return 0; |
150 } | 150 } |
151 | 151 |
152 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state); | 152 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state); |
153 if (state->hadException()) { | 153 if (state->hadException()) { |
154 ec = IDBDatabaseException::DataCloneError; | 154 ec = IDBDatabaseException::DataCloneError; |
155 return 0; | 155 return 0; |
156 } | 156 } |
157 | 157 |
158 if (serializedValue->blobURLs().size() > 0) { | 158 if (serializedValue->containsBlobs()) { |
159 // FIXME: Add Blob/File/FileList support | 159 // FIXME: Add Blob/File/FileList support |
160 ec = IDBDatabaseException::DataCloneError; | 160 ec = IDBDatabaseException::DataCloneError; |
161 return 0; | 161 return 0; |
162 } | 162 } |
163 | 163 |
164 const IDBKeyPath& keyPath = m_metadata.keyPath; | 164 const IDBKeyPath& keyPath = m_metadata.keyPath; |
165 const bool usesInLineKeys = !keyPath.isNull(); | 165 const bool usesInLineKeys = !keyPath.isNull(); |
166 const bool hasKeyGenerator = autoIncrement(); | 166 const bool hasKeyGenerator = autoIncrement(); |
167 | 167 |
168 ScriptExecutionContext* context = scriptExecutionContextFromScriptState(stat
e); | 168 ScriptExecutionContext* context = scriptExecutionContextFromScriptState(stat
e); |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 } | 546 } |
547 | 547 |
548 IDBDatabaseBackendInterface* IDBObjectStore::backendDB() const | 548 IDBDatabaseBackendInterface* IDBObjectStore::backendDB() const |
549 { | 549 { |
550 return m_transaction->backendDB(); | 550 return m_transaction->backendDB(); |
551 } | 551 } |
552 | 552 |
553 } // namespace WebCore | 553 } // namespace WebCore |
554 | 554 |
555 #endif // ENABLE(INDEXED_DATABASE) | 555 #endif // ENABLE(INDEXED_DATABASE) |
OLD | NEW |