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

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

Issue 2550363002: Add LayoutTests for URL list of Response (Closed)
Patch Set: s/thired/third/ Created 4 years 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"
19 #include "wtf/text/WTFString.h"
18 20
19 namespace blink { 21 namespace blink {
20 22
21 class ExceptionState; 23 class ExceptionState;
22 class ResponseInit; 24 class ResponseInit;
23 class ScriptState; 25 class ScriptState;
24 class WebServiceWorkerResponse; 26 class WebServiceWorkerResponse;
25 27
26 class MODULES_EXPORT Response final : public Body { 28 class MODULES_EXPORT Response final : public Body {
27 DEFINE_WRAPPERTYPEINFO(); 29 DEFINE_WRAPPERTYPEINFO();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 return m_response->internalBuffer(); 89 return m_response->internalBuffer();
88 } 90 }
89 const BodyStreamBuffer* internalBodyBuffer() const { 91 const BodyStreamBuffer* internalBodyBuffer() const {
90 return m_response->internalBuffer(); 92 return m_response->internalBuffer();
91 } 93 }
92 bool bodyUsed() override; 94 bool bodyUsed() override;
93 95
94 String mimeType() const override; 96 String mimeType() const override;
95 String internalMIMEType() const; 97 String internalMIMEType() const;
96 98
99 const Vector<KURL>& internalURLList() const;
100
97 DECLARE_VIRTUAL_TRACE(); 101 DECLARE_VIRTUAL_TRACE();
98 102
99 private: 103 private:
100 explicit Response(ExecutionContext*); 104 explicit Response(ExecutionContext*);
101 Response(ExecutionContext*, FetchResponseData*); 105 Response(ExecutionContext*, FetchResponseData*);
102 Response(ExecutionContext*, FetchResponseData*, Headers*); 106 Response(ExecutionContext*, FetchResponseData*, Headers*);
103 107
104 void installBody(); 108 void installBody();
105 void refreshBody(ScriptState*); 109 void refreshBody(ScriptState*);
106 110
107 const Member<FetchResponseData> m_response; 111 const Member<FetchResponseData> m_response;
108 const Member<Headers> m_headers; 112 const Member<Headers> m_headers;
109 }; 113 };
110 114
111 } // namespace blink 115 } // namespace blink
112 116
113 #endif // Response_h 117 #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