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

Side by Side Diff: WebCore/Modules/indexeddb/IDBObjectStore.cpp

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years 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
OLDNEW
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
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698