| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 ec = IDBDatabaseException::ReadOnlyError; | 152 ec = IDBDatabaseException::ReadOnlyError; |
| 153 return 0; | 153 return 0; |
| 154 } | 154 } |
| 155 | 155 |
| 156 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state); | 156 RefPtr<SerializedScriptValue> serializedValue = value.serialize(state); |
| 157 if (state->hadException()) { | 157 if (state->hadException()) { |
| 158 ec = IDBDatabaseException::DataCloneError; | 158 ec = IDBDatabaseException::DataCloneError; |
| 159 return 0; | 159 return 0; |
| 160 } | 160 } |
| 161 | 161 |
| 162 if (serializedValue->blobURLs().size() > 0) { | 162 if (serializedValue->containsBlobs()) { |
| 163 // FIXME: Add Blob/File/FileList support | 163 // FIXME: Add Blob/File/FileList support |
| 164 ec = IDBDatabaseException::DataCloneError; | 164 ec = IDBDatabaseException::DataCloneError; |
| 165 return 0; | 165 return 0; |
| 166 } | 166 } |
| 167 | 167 |
| 168 const IDBKeyPath& keyPath = m_metadata.keyPath; | 168 const IDBKeyPath& keyPath = m_metadata.keyPath; |
| 169 const bool usesInLineKeys = !keyPath.isNull(); | 169 const bool usesInLineKeys = !keyPath.isNull(); |
| 170 const bool hasKeyGenerator = autoIncrement(); | 170 const bool hasKeyGenerator = autoIncrement(); |
| 171 | 171 |
| 172 ScriptExecutionContext* context = scriptExecutionContextFromScriptState(stat
e); | 172 ScriptExecutionContext* context = scriptExecutionContextFromScriptState(stat
e); |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 ASSERT(it->key != IDBIndexMetadata::InvalidId); | 554 ASSERT(it->key != IDBIndexMetadata::InvalidId); |
| 555 return it->key; | 555 return it->key; |
| 556 } | 556 } |
| 557 } | 557 } |
| 558 return IDBIndexMetadata::InvalidId; | 558 return IDBIndexMetadata::InvalidId; |
| 559 } | 559 } |
| 560 | 560 |
| 561 } // namespace WebCore | 561 } // namespace WebCore |
| 562 | 562 |
| 563 #endif // ENABLE(INDEXED_DATABASE) | 563 #endif // ENABLE(INDEXED_DATABASE) |
| OLD | NEW |