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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Response.h

Issue 1969333002: [Fetch API] |(new Response(stream)).body| should return |stream| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Response_h 5 #ifndef Response_h
6 #define Response_h 6 #define Response_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 18 matching lines...) Expand all
29 class WebServiceWorkerResponse; 29 class WebServiceWorkerResponse;
30 30
31 class MODULES_EXPORT Response final : public Body { 31 class MODULES_EXPORT Response final : public Body {
32 DEFINE_WRAPPERTYPEINFO(); 32 DEFINE_WRAPPERTYPEINFO();
33 WTF_MAKE_NONCOPYABLE(Response); 33 WTF_MAKE_NONCOPYABLE(Response);
34 public: 34 public:
35 // From Response.idl: 35 // From Response.idl:
36 static Response* create(ScriptState*, ExceptionState&); 36 static Response* create(ScriptState*, ExceptionState&);
37 static Response* create(ScriptState*, ScriptValue body, const Dictionary&, E xceptionState&); 37 static Response* create(ScriptState*, ScriptValue body, const Dictionary&, E xceptionState&);
38 38
39 static Response* create(ScriptState*, PassOwnPtr<FetchDataConsumerHandle> bo dyHandle, const String& contentType, const ResponseInit&, ExceptionState&); 39 static Response* create(ScriptState*, BodyStreamBuffer*, const String& conte ntType, const ResponseInit&, ExceptionState&);
40 static Response* create(ExecutionContext*, FetchResponseData*); 40 static Response* create(ExecutionContext*, FetchResponseData*);
41 static Response* create(ScriptState*, const WebServiceWorkerResponse&); 41 static Response* create(ScriptState*, const WebServiceWorkerResponse&);
42 42
43 static Response* createClone(const Response&); 43 static Response* createClone(const Response&);
44 44
45 static Response* error(ExecutionContext*); 45 static Response* error(ExecutionContext*);
46 static Response* redirect(ExecutionContext*, const String& url, unsigned sho rt status, ExceptionState&); 46 static Response* redirect(ExecutionContext*, const String& url, unsigned sho rt status, ExceptionState&);
47 47
48 const FetchResponseData* response() const { return m_response; } 48 const FetchResponseData* response() const { return m_response; }
49 49
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Response(ExecutionContext*, FetchResponseData*); 81 Response(ExecutionContext*, FetchResponseData*);
82 Response(ExecutionContext*, FetchResponseData*, Headers*); 82 Response(ExecutionContext*, FetchResponseData*, Headers*);
83 83
84 const Member<FetchResponseData> m_response; 84 const Member<FetchResponseData> m_response;
85 const Member<Headers> m_headers; 85 const Member<Headers> m_headers;
86 }; 86 };
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif // Response_h 90 #endif // Response_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchResponseData.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