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

Unified Diff: Source/bindings/modules/v8/V8BindingForModules.h

Issue 1003713002: [bindings] Rename IDBBindingUtilities.cpp to V8BindingForModules.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Renaming patch Created 5 years, 9 months 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/modules/v8/V8BindingForModules.h
diff --git a/Source/bindings/modules/v8/V8BindingForModules.h b/Source/bindings/modules/v8/V8BindingForModules.h
index 72eedf5a3a5ce476bd981a86a0c68203d8680a39..3a5c9e89c180be0d1539809c0043895cf78d48af 100644
--- a/Source/bindings/modules/v8/V8BindingForModules.h
+++ b/Source/bindings/modules/v8/V8BindingForModules.h
@@ -10,6 +10,31 @@
namespace blink {
+class IDBAny;
+class IDBKey;
+class IDBKeyPath;
+class IDBKeyRange;
+class SerializedScriptValue;
+class SharedBuffer;
+class WebBlobInfo;
+
+// Exposed for unit testing:
+bool injectV8KeyIntoV8Value(v8::Isolate*, v8::Local<v8::Value> key, v8::Local<v8::Value>, const IDBKeyPath&);
+
+// For use by Source/modules/indexeddb:
+IDBKey* createIDBKeyFromScriptValueAndKeyPath(v8::Isolate*, const ScriptValue&, const IDBKeyPath&);
+bool canInjectIDBKeyIntoScriptValue(v8::Isolate*, const ScriptValue&, const IDBKeyPath&);
+ScriptValue idbAnyToScriptValue(ScriptState*, IDBAny*);
+ScriptValue idbKeyToScriptValue(ScriptState*, const IDBKey*);
+ScriptValue idbKeyPathToScriptValue(ScriptState*, const IDBKeyPath&);
+IDBKey* scriptValueToIDBKey(v8::Isolate*, const ScriptValue&);
+IDBKeyRange* scriptValueToIDBKeyRange(v8::Isolate*, const ScriptValue&);
+ScriptValue deserializeScriptValue(ScriptState*, SerializedScriptValue*, const Vector<blink::WebBlobInfo>*);
+
+#if ENABLE(ASSERT)
+void assertPrimaryKeyValidOrInjectable(ScriptState*, PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*, IDBKey*, const IDBKeyPath&);
+#endif
+
template <>
struct NativeValueTraits<SQLValue> {
static SQLValue nativeValue(const v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
« no previous file with comments | « Source/bindings/modules/v8/IDBBindingUtilitiesTest.cpp ('k') | Source/bindings/modules/v8/V8BindingForModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698