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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 es.throwUninformativeAndGenericDOMException(ReadOnlyError); | 160 es.throwUninformativeAndGenericDOMException(ReadOnlyError); |
161 return 0; | 161 return 0; |
162 } | 162 } |
163 | 163 |
164 // FIXME: Make serialize etc take an ExceptionState or use ScriptState::setD
OMException. | 164 // FIXME: Make serialize etc take an ExceptionState or use ScriptState::setD
OMException. |
165 bool didThrow = false; | 165 bool didThrow = false; |
166 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state, 0, 0,
didThrow); | 166 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state, 0, 0,
didThrow); |
167 if (didThrow) | 167 if (didThrow) |
168 return 0; | 168 return 0; |
169 | 169 |
170 if (serializedValue->blobURLs().size() > 0) { | 170 if (serializedValue->containsBlobs()) { |
171 // FIXME: Add Blob/File/FileList support | 171 // FIXME: Add Blob/File/FileList support |
172 es.throwUninformativeAndGenericDOMException(DataCloneError); | 172 es.throwUninformativeAndGenericDOMException(DataCloneError); |
173 return 0; | 173 return 0; |
174 } | 174 } |
175 | 175 |
176 const IDBKeyPath& keyPath = m_metadata.keyPath; | 176 const IDBKeyPath& keyPath = m_metadata.keyPath; |
177 const bool usesInLineKeys = !keyPath.isNull(); | 177 const bool usesInLineKeys = !keyPath.isNull(); |
178 const bool hasKeyGenerator = autoIncrement(); | 178 const bool hasKeyGenerator = autoIncrement(); |
179 | 179 |
180 ExecutionContext* context = state->executionContext(); | 180 ExecutionContext* context = state->executionContext(); |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 } | 613 } |
614 return IDBIndexMetadata::InvalidId; | 614 return IDBIndexMetadata::InvalidId; |
615 } | 615 } |
616 | 616 |
617 IDBDatabaseBackendInterface* IDBObjectStore::backendDB() const | 617 IDBDatabaseBackendInterface* IDBObjectStore::backendDB() const |
618 { | 618 { |
619 return m_transaction->backendDB(); | 619 return m_transaction->backendDB(); |
620 } | 620 } |
621 | 621 |
622 } // namespace WebCore | 622 } // namespace WebCore |
OLD | NEW |