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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.h

Issue 2781273004: Graceful handling of new versions of IndexedDB serialized data. (Closed)
Patch Set: Addressed nits. Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8BindingForModules_h 5 #ifndef V8BindingForModules_h
6 #define V8BindingForModules_h 6 #define V8BindingForModules_h
7 7
8 #include "bindings/core/v8/V8Binding.h" 8 #include "bindings/core/v8/V8Binding.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/webdatabase/sqlite/SQLValue.h" 10 #include "modules/webdatabase/sqlite/SQLValue.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class IDBKey; 14 class IDBKey;
15 class IDBKeyPath; 15 class IDBKeyPath;
16 class IDBKeyRange; 16 class IDBKeyRange;
17 class IDBValue; 17 class IDBValue;
18 class SerializedScriptValue; 18 class SerializedScriptValue;
19 class WebBlobInfo; 19 class WebBlobInfo;
20 20
21 // Exposed for unit testing: 21 // Exposed for unit testing:
22 MODULES_EXPORT v8::Local<v8::Value> deserializeIDBValue(
23 v8::Isolate*,
24 v8::Local<v8::Object> creationContext,
25 const IDBValue*);
22 MODULES_EXPORT bool injectV8KeyIntoV8Value(v8::Isolate*, 26 MODULES_EXPORT bool injectV8KeyIntoV8Value(v8::Isolate*,
23 v8::Local<v8::Value> key, 27 v8::Local<v8::Value> key,
24 v8::Local<v8::Value>, 28 v8::Local<v8::Value>,
25 const IDBKeyPath&); 29 const IDBKeyPath&);
26 30
27 // For use by Source/modules/indexeddb (and unit testing): 31 // For use by Source/modules/indexeddb (and unit testing):
28 MODULES_EXPORT bool canInjectIDBKeyIntoScriptValue(v8::Isolate*, 32 MODULES_EXPORT bool canInjectIDBKeyIntoScriptValue(v8::Isolate*,
29 const ScriptValue&, 33 const ScriptValue&,
30 const IDBKeyPath&); 34 const IDBKeyPath&);
31 ScriptValue deserializeScriptValue(ScriptState*, 35 ScriptValue deserializeScriptValue(ScriptState*,
(...skipping 25 matching lines...) Expand all
57 template <> 61 template <>
58 struct NativeValueTraits<IDBKeyRange*> { 62 struct NativeValueTraits<IDBKeyRange*> {
59 static IDBKeyRange* nativeValue(v8::Isolate*, 63 static IDBKeyRange* nativeValue(v8::Isolate*,
60 v8::Local<v8::Value>, 64 v8::Local<v8::Value>,
61 ExceptionState&); 65 ExceptionState&);
62 }; 66 };
63 67
64 } // namespace blink 68 } // namespace blink
65 69
66 #endif // V8BindingForModules_h 70 #endif // V8BindingForModules_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/modules/v8/V8BindingForModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698