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

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

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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
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"
(...skipping 14 matching lines...) Expand all
25 const IDBKeyPath&); 25 const IDBKeyPath&);
26 26
27 // For use by Source/modules/indexeddb (and unit testing): 27 // For use by Source/modules/indexeddb (and unit testing):
28 MODULES_EXPORT bool canInjectIDBKeyIntoScriptValue(v8::Isolate*, 28 MODULES_EXPORT bool canInjectIDBKeyIntoScriptValue(v8::Isolate*,
29 const ScriptValue&, 29 const ScriptValue&,
30 const IDBKeyPath&); 30 const IDBKeyPath&);
31 ScriptValue deserializeScriptValue(ScriptState*, 31 ScriptValue deserializeScriptValue(ScriptState*,
32 SerializedScriptValue*, 32 SerializedScriptValue*,
33 const Vector<WebBlobInfo>*); 33 const Vector<WebBlobInfo>*);
34 34
35 #if ENABLE(ASSERT) 35 #if DCHECK_IS_ON()
36 void assertPrimaryKeyValidOrInjectable(ScriptState*, const IDBValue*); 36 void assertPrimaryKeyValidOrInjectable(ScriptState*, const IDBValue*);
37 #endif 37 #endif
38 38
39 template <> 39 template <>
40 struct NativeValueTraits<SQLValue> { 40 struct NativeValueTraits<SQLValue> {
41 static SQLValue nativeValue(v8::Isolate*, 41 static SQLValue nativeValue(v8::Isolate*,
42 v8::Local<v8::Value>, 42 v8::Local<v8::Value>,
43 ExceptionState&); 43 ExceptionState&);
44 }; 44 };
45 45
(...skipping 13 matching lines...) Expand all
59 static IDBKeyRange* nativeValue(v8::Isolate*, 59 static IDBKeyRange* nativeValue(v8::Isolate*,
60 v8::Local<v8::Value>, 60 v8::Local<v8::Value>,
61 ExceptionState&); 61 ExceptionState&);
62 }; 62 };
63 63
64 void registerInstallOriginTrialsForModules(); 64 void registerInstallOriginTrialsForModules();
65 65
66 } // namespace blink 66 } // namespace blink
67 67
68 #endif // V8BindingForModules_h 68 #endif // V8BindingForModules_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698