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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.h

Issue 2416843002: Implement FetchEvent.navigationPreload (Closed)
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
index 81518f79b0f6221e457b7c6d0a045e442219063f..ccc17c256a1d786c949178f2de173c5076d744d7 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
@@ -371,6 +371,13 @@ inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo,
v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
}
+template <typename CallbackInfo, typename Wrappable>
+inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo,
yhirano 2016/10/21 01:48:58 Can you tell me why this is needed?
horo 2016/10/21 10:56:40 navigationPreloadAttributeGetter() in V8FetchEvent
yhirano 2016/10/24 07:13:39 +yukishiino@chromium.org I think this is a bug in
Yuki 2016/10/24 08:43:21 Is this spec-conformant? I've never hard of nulla
+ blink::ScriptPromise promise,
+ const Wrappable* wrappable) {
+ v8SetReturnValue(callbackInfo, promise.v8Value());
+}
+
// Convert v8::String to a WTF::String. If the V8 string is not already
// an external string then it is transformed into an external string at this
// point to avoid repeated conversions.

Powered by Google App Engine
This is Rietveld 408576698