| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "bindings/modules/v8/V8IDBObjectStore.h" | 43 #include "bindings/modules/v8/V8IDBObjectStore.h" |
| 44 #include "core/dom/DOMArrayBuffer.h" | 44 #include "core/dom/DOMArrayBuffer.h" |
| 45 #include "core/dom/DOMArrayBufferView.h" | 45 #include "core/dom/DOMArrayBufferView.h" |
| 46 #include "modules/indexeddb/IDBKey.h" | 46 #include "modules/indexeddb/IDBKey.h" |
| 47 #include "modules/indexeddb/IDBKeyPath.h" | 47 #include "modules/indexeddb/IDBKeyPath.h" |
| 48 #include "modules/indexeddb/IDBKeyRange.h" | 48 #include "modules/indexeddb/IDBKeyRange.h" |
| 49 #include "modules/indexeddb/IDBTracing.h" | 49 #include "modules/indexeddb/IDBTracing.h" |
| 50 #include "modules/indexeddb/IDBValue.h" | 50 #include "modules/indexeddb/IDBValue.h" |
| 51 #include "platform/RuntimeEnabledFeatures.h" | 51 #include "platform/RuntimeEnabledFeatures.h" |
| 52 #include "platform/SharedBuffer.h" | 52 #include "platform/SharedBuffer.h" |
| 53 #include "wtf/MathExtras.h" | 53 #include "platform/wtf/MathExtras.h" |
| 54 #include "wtf/Vector.h" | 54 #include "platform/wtf/Vector.h" |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 static v8::Local<v8::Value> deserializeIDBValueData(v8::Isolate*, | 58 static v8::Local<v8::Value> deserializeIDBValueData(v8::Isolate*, |
| 59 const IDBValue*); | 59 const IDBValue*); |
| 60 static v8::Local<v8::Value> deserializeIDBValueArray( | 60 static v8::Local<v8::Value> deserializeIDBValueArray( |
| 61 v8::Isolate*, | 61 v8::Isolate*, |
| 62 v8::Local<v8::Object> creationContext, | 62 v8::Local<v8::Object> creationContext, |
| 63 const Vector<RefPtr<IDBValue>>*); | 63 const Vector<RefPtr<IDBValue>>*); |
| 64 | 64 |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 if (expectedKey && expectedKey->isEqual(value->primaryKey())) | 663 if (expectedKey && expectedKey->isEqual(value->primaryKey())) |
| 664 return; | 664 return; |
| 665 | 665 |
| 666 bool injected = injectV8KeyIntoV8Value( | 666 bool injected = injectV8KeyIntoV8Value( |
| 667 isolate, keyValue.v8Value(), scriptValue.v8Value(), value->keyPath()); | 667 isolate, keyValue.v8Value(), scriptValue.v8Value(), value->keyPath()); |
| 668 DCHECK(injected); | 668 DCHECK(injected); |
| 669 } | 669 } |
| 670 #endif | 670 #endif |
| 671 | 671 |
| 672 } // namespace blink | 672 } // namespace blink |
| OLD | NEW |