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

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

Issue 235933013: Add the backchannel for Blobs to be received into Blink from the database backend. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix oilpan type merge Created 6 years, 8 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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef IDBBindingUtilities_h 26 #ifndef IDBBindingUtilities_h
27 #define IDBBindingUtilities_h 27 #define IDBBindingUtilities_h
28 28
29 #include "bindings/v8/NewScriptState.h" 29 #include "bindings/v8/NewScriptState.h"
30 #include "bindings/v8/ScriptValue.h" 30 #include "bindings/v8/ScriptValue.h"
31 #include <v8.h> 31 #include <v8.h>
32 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
33 33
34 namespace blink {
35
36 class WebBlobInfo;
37
38 }
39
34 namespace WebCore { 40 namespace WebCore {
35 41
36 class IDBAny; 42 class IDBAny;
37 class IDBKey; 43 class IDBKey;
38 class IDBKeyPath; 44 class IDBKeyPath;
39 class IDBKeyRange; 45 class IDBKeyRange;
40 class SerializedScriptValue; 46 class SerializedScriptValue;
41 class SharedBuffer; 47 class SharedBuffer;
42 48
43 // Exposed for unit testing: 49 // Exposed for unit testing:
44 bool injectV8KeyIntoV8Value(v8::Isolate*, v8::Handle<v8::Value> key, v8::Handle< v8::Value>, const IDBKeyPath&); 50 bool injectV8KeyIntoV8Value(v8::Isolate*, v8::Handle<v8::Value> key, v8::Handle< v8::Value>, const IDBKeyPath&);
45 51
46 // For use by Source/modules/indexeddb: 52 // For use by Source/modules/indexeddb:
47 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(v8::Isolate*, const Scr iptValue&, const IDBKeyPath&); 53 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(v8::Isolate*, const Scr iptValue&, const IDBKeyPath&);
48 bool canInjectIDBKeyIntoScriptValue(v8::Isolate*, const ScriptValue&, const IDBK eyPath&); 54 bool canInjectIDBKeyIntoScriptValue(v8::Isolate*, const ScriptValue&, const IDBK eyPath&);
49 ScriptValue idbAnyToScriptValue(NewScriptState*, PassRefPtrWillBeRawPtr<IDBAny>) ; 55 ScriptValue idbAnyToScriptValue(NewScriptState*, PassRefPtrWillBeRawPtr<IDBAny>) ;
50 ScriptValue idbKeyToScriptValue(NewScriptState*, PassRefPtr<IDBKey>); 56 ScriptValue idbKeyToScriptValue(NewScriptState*, PassRefPtr<IDBKey>);
51 PassRefPtr<IDBKey> scriptValueToIDBKey(v8::Isolate*, const ScriptValue&); 57 PassRefPtr<IDBKey> scriptValueToIDBKey(v8::Isolate*, const ScriptValue&);
52 PassRefPtr<IDBKeyRange> scriptValueToIDBKeyRange(v8::Isolate*, const ScriptValue &); 58 PassRefPtr<IDBKeyRange> scriptValueToIDBKeyRange(v8::Isolate*, const ScriptValue &);
53 59
54 #ifndef NDEBUG 60 #ifndef NDEBUG
55 void assertPrimaryKeyValidOrInjectable(NewScriptState*, PassRefPtr<SharedBuffer> , PassRefPtr<IDBKey>, const IDBKeyPath&); 61 void assertPrimaryKeyValidOrInjectable(NewScriptState*, PassRefPtr<SharedBuffer> , const Vector<blink::WebBlobInfo>*, PassRefPtr<IDBKey>, const IDBKeyPath&);
56 #endif 62 #endif
57 63
58 } // namespace WebCore 64 } // namespace WebCore
59 65
60 #endif // IDBBindingUtilities_h 66 #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