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

Side by Side Diff: Source/bindings/v8/IDBBindingUtilities.h

Issue 22893058: IndexedDB: Replace IDL operation overloading with ScriptValue handling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove assert, per review feedback Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/v8/IDBBindingUtilities.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 17 matching lines...) Expand all
28 28
29 #include "bindings/v8/ScriptValue.h" 29 #include "bindings/v8/ScriptValue.h"
30 #include <v8.h> 30 #include <v8.h>
31 #include "wtf/Forward.h" 31 #include "wtf/Forward.h"
32 32
33 namespace WebCore { 33 namespace WebCore {
34 34
35 class DOMRequestState; 35 class DOMRequestState;
36 class IDBKey; 36 class IDBKey;
37 class IDBKeyPath; 37 class IDBKeyPath;
38 class IDBKeyRange;
38 class SerializedScriptValue; 39 class SerializedScriptValue;
39 class SharedBuffer; 40 class SharedBuffer;
40 41
41 bool injectIDBKeyIntoScriptValue(DOMRequestState*, PassRefPtr<IDBKey>, ScriptVal ue&, const IDBKeyPath&); 42 bool injectIDBKeyIntoScriptValue(DOMRequestState*, PassRefPtr<IDBKey>, ScriptVal ue&, const IDBKeyPath&);
42 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(DOMRequestState*, const ScriptValue&, const IDBKeyPath&); 43 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(DOMRequestState*, const ScriptValue&, const IDBKeyPath&);
43 bool canInjectIDBKeyIntoScriptValue(DOMRequestState*, const ScriptValue&, const IDBKeyPath&); 44 bool canInjectIDBKeyIntoScriptValue(DOMRequestState*, const ScriptValue&, const IDBKeyPath&);
44 ScriptValue deserializeIDBValue(DOMRequestState*, PassRefPtr<SerializedScriptVal ue>); 45 ScriptValue deserializeIDBValue(DOMRequestState*, PassRefPtr<SerializedScriptVal ue>);
45 ScriptValue deserializeIDBValueBuffer(DOMRequestState*, PassRefPtr<SharedBuffer> ); 46 ScriptValue deserializeIDBValueBuffer(DOMRequestState*, PassRefPtr<SharedBuffer> );
46 ScriptValue idbKeyToScriptValue(DOMRequestState*, PassRefPtr<IDBKey>); 47 ScriptValue idbKeyToScriptValue(DOMRequestState*, PassRefPtr<IDBKey>);
47 PassRefPtr<IDBKey> scriptValueToIDBKey(DOMRequestState*, const ScriptValue&); 48 PassRefPtr<IDBKey> scriptValueToIDBKey(DOMRequestState*, const ScriptValue&);
49 PassRefPtr<IDBKeyRange> scriptValueToIDBKeyRange(DOMRequestState*, const ScriptV alue&);
48 50
49 } // namespace WebCore 51 } // namespace WebCore
50 52
51 #endif // IDBBindingUtilities_h 53 #endif // IDBBindingUtilities_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/v8/IDBBindingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698