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

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

Issue 2780693003: [wasm] response-based compile APIs (Closed)
Patch Set: . Created 3 years, 8 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"
11 #include "modules/ModulesExport.h" 11 #include "modules/ModulesExport.h"
12 #include "modules/fetch/Body.h" 12 #include "modules/fetch/Body.h"
13 #include "modules/fetch/BodyStreamBuffer.h" 13 #include "modules/fetch/BodyStreamBuffer.h"
14 #include "modules/fetch/FetchResponseData.h" 14 #include "modules/fetch/FetchResponseData.h"
15 #include "modules/fetch/Headers.h" 15 #include "modules/fetch/Headers.h"
16 #include "platform/blob/BlobData.h" 16 #include "platform/blob/BlobData.h"
17 #include "platform/heap/Handle.h" 17 #include "platform/heap/Handle.h"
18 #include "wtf/Vector.h" 18 #include "wtf/Vector.h"
19 #include "wtf/text/WTFString.h" 19 #include "wtf/text/WTFString.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 class ExceptionState; 23 class ExceptionState;
24 class ResponseInit; 24 class ResponseInit;
25 class ScriptState; 25 class ScriptState;
26 class WebServiceWorkerResponse; 26 class WebServiceWorkerResponse;
27 27
28 class MODULES_EXPORT Response final : public Body { 28 class MODULES_EXPORT Response final : public Body {
29 DEFINE_WRAPPERTYPEINFO(); 29 public:
30 const WrapperTypeInfo* wrapperTypeInfo() const override {
yhirano 2017/04/04 00:44:35 Can you add some comments explaining why these cus
Mircea Trofin 2017/04/04 04:08:12 Done.
31 return &s_wrapperTypeInfoOverride;
32 }
33
34 private:
35 static v8::Local<v8::FunctionTemplate> installerOverride(
36 v8::Isolate*,
37 const DOMWrapperWorld&);
38 static const WrapperTypeInfo& s_wrapperTypeInfo;
39 static const WrapperTypeInfo s_wrapperTypeInfoOverride;
40
30 WTF_MAKE_NONCOPYABLE(Response); 41 WTF_MAKE_NONCOPYABLE(Response);
31 42
32 public: 43 public:
33 // These "create" function which takes a ScriptState* must be called with 44 // These "create" function which takes a ScriptState* must be called with
34 // entering an appropriate V8 context. 45 // entering an appropriate V8 context.
35 // From Response.idl: 46 // From Response.idl:
36 static Response* create(ScriptState*, ExceptionState&); 47 static Response* create(ScriptState*, ExceptionState&);
37 static Response* create(ScriptState*, 48 static Response* create(ScriptState*,
38 ScriptValue body, 49 ScriptValue body,
39 const ResponseInit&, 50 const ResponseInit&,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void installBody(); 120 void installBody();
110 void refreshBody(ScriptState*); 121 void refreshBody(ScriptState*);
111 122
112 const Member<FetchResponseData> m_response; 123 const Member<FetchResponseData> m_response;
113 const Member<Headers> m_headers; 124 const Member<Headers> m_headers;
114 }; 125 };
115 126
116 } // namespace blink 127 } // namespace blink
117 128
118 #endif // Response_h 129 #endif // Response_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698