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

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

Issue 1027613002: [bindings] Refactor NativeValueTraits<T>::nativeValue to accept isolate as first parameter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « Source/bindings/core/v8/V8Binding.h ('k') | 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/webdatabase/sqlite/SQLValue.h" 9 #include "modules/webdatabase/sqlite/SQLValue.h"
10 10
(...skipping 14 matching lines...) Expand all
25 IDBKey* createIDBKeyFromScriptValueAndKeyPath(v8::Isolate*, const ScriptValue&, const IDBKeyPath&); 25 IDBKey* createIDBKeyFromScriptValueAndKeyPath(v8::Isolate*, const ScriptValue&, const IDBKeyPath&);
26 bool canInjectIDBKeyIntoScriptValue(v8::Isolate*, const ScriptValue&, const IDBK eyPath&); 26 bool canInjectIDBKeyIntoScriptValue(v8::Isolate*, const ScriptValue&, const IDBK eyPath&);
27 ScriptValue deserializeScriptValue(ScriptState*, SerializedScriptValue*, const V ector<blink::WebBlobInfo>*); 27 ScriptValue deserializeScriptValue(ScriptState*, SerializedScriptValue*, const V ector<blink::WebBlobInfo>*);
28 28
29 #if ENABLE(ASSERT) 29 #if ENABLE(ASSERT)
30 void assertPrimaryKeyValidOrInjectable(ScriptState*, PassRefPtr<SharedBuffer>, c onst Vector<blink::WebBlobInfo>*, IDBKey*, const IDBKeyPath&); 30 void assertPrimaryKeyValidOrInjectable(ScriptState*, PassRefPtr<SharedBuffer>, c onst Vector<blink::WebBlobInfo>*, IDBKey*, const IDBKeyPath&);
31 #endif 31 #endif
32 32
33 template <> 33 template <>
34 struct NativeValueTraits<SQLValue> { 34 struct NativeValueTraits<SQLValue> {
35 static SQLValue nativeValue(v8::Local<v8::Value>, v8::Isolate*, ExceptionSta te&); 35 static SQLValue nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionSta te&);
36 }; 36 };
37 37
38 template <> 38 template <>
39 struct NativeValueTraits<IDBKey*> { 39 struct NativeValueTraits<IDBKey*> {
40 static IDBKey* nativeValue(v8::Local<v8::Value>, v8::Isolate*, ExceptionStat e&); 40 static IDBKey* nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionStat e&);
41 }; 41 };
42 42
43 template <> 43 template <>
44 struct NativeValueTraits<IDBKeyRange*> { 44 struct NativeValueTraits<IDBKeyRange*> {
45 static IDBKeyRange* nativeValue(v8::Local<v8::Value>, v8::Isolate*, Exceptio nState&); 45 static IDBKeyRange* nativeValue(v8::Isolate*, v8::Local<v8::Value>, Exceptio nState&);
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // V8BindingForModules_h 50 #endif // V8BindingForModules_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8Binding.h ('k') | Source/bindings/modules/v8/V8BindingForModules.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698