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

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

Issue 1535943005: Initial implementation of bindings and basic classes for worklets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address (most) comments. Created 4 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"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExecutionContext;
14 class IDBAny; 15 class IDBAny;
15 class IDBKey; 16 class IDBKey;
16 class IDBKeyPath; 17 class IDBKeyPath;
17 class IDBKeyRange; 18 class IDBKeyRange;
18 class IDBValue; 19 class IDBValue;
19 class SerializedScriptValue; 20 class SerializedScriptValue;
20 class SharedBuffer; 21 class SharedBuffer;
21 class WebBlobInfo; 22 class WebBlobInfo;
22 23
23 // Exposed for unit testing: 24 // Exposed for unit testing:
(...skipping 16 matching lines...) Expand all
40 struct NativeValueTraits<IDBKey*> { 41 struct NativeValueTraits<IDBKey*> {
41 static IDBKey* nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionStat e&); 42 static IDBKey* nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionStat e&);
42 MODULES_EXPORT static IDBKey* nativeValue(v8::Isolate*, v8::Local<v8::Value> , ExceptionState&, const IDBKeyPath&); 43 MODULES_EXPORT static IDBKey* nativeValue(v8::Isolate*, v8::Local<v8::Value> , ExceptionState&, const IDBKeyPath&);
43 }; 44 };
44 45
45 template <> 46 template <>
46 struct NativeValueTraits<IDBKeyRange*> { 47 struct NativeValueTraits<IDBKeyRange*> {
47 static IDBKeyRange* nativeValue(v8::Isolate*, v8::Local<v8::Value>, Exceptio nState&); 48 static IDBKeyRange* nativeValue(v8::Isolate*, v8::Local<v8::Value>, Exceptio nState&);
48 }; 49 };
49 50
51 ExecutionContext* toExecutionContextForModules(v8::Local<v8::Context>);
52 v8::Local<v8::Context> toV8ContextForModules(ExecutionContext*);
53
50 } // namespace blink 54 } // namespace blink
51 55
52 #endif // V8BindingForModules_h 56 #endif // V8BindingForModules_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698