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

Unified Diff: third_party/WebKit/Source/modules/fetch/Response.h

Issue 2141383002: [Fetch API] Remove HandleScope to protect local handles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 5 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/modules/fetch/Response.h
diff --git a/third_party/WebKit/Source/modules/fetch/Response.h b/third_party/WebKit/Source/modules/fetch/Response.h
index 4f91a0d5bc5f35f8653b3305469aadb83313e945..b05e275346c74b3780d5bb0afe0f69e7cae869f5 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.h
+++ b/third_party/WebKit/Source/modules/fetch/Response.h
@@ -30,6 +30,8 @@ class MODULES_EXPORT Response final : public Body {
DEFINE_WRAPPERTYPEINFO();
WTF_MAKE_NONCOPYABLE(Response);
public:
+ // These "create" function which takes a ScriptState* must be called with
+ // entering an appropriate V8 context.
// From Response.idl:
static Response* create(ScriptState*, ExceptionState&);
static Response* create(ScriptState*, ScriptValue body, const Dictionary&, ExceptionState&);
@@ -54,6 +56,7 @@ public:
Headers* headers() const;
// From Response.idl:
+ // This function must be called with entering an appropriate V8 context.
Response* clone(ScriptState*, ExceptionState&);
// ActiveScriptWrappable
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestTest.cpp ('k') | third_party/WebKit/Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698