Changeset 209195 in webkit
- Timestamp:
- Dec 1, 2016 1:22:07 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r209194 r209195 1 2016-12-01 Joseph Pecoraro <pecoraro@apple.com> 2 3 Misc. cleanup in Modules/fetch 4 https://bugs.webkit.org/show_bug.cgi?id=165240 5 6 Reviewed by Darin Adler. 7 8 * Modules/fetch/DOMWindowFetch.h: 9 * Modules/fetch/FetchBody.cpp: 10 * Modules/fetch/FetchBody.h: 11 * Modules/fetch/FetchBodyConsumer.cpp: 12 * Modules/fetch/FetchBodyOwner.cpp: 13 * Modules/fetch/FetchBodyOwner.h: 14 * Modules/fetch/FetchInternals.js: 15 (consumeStream): 16 * Modules/fetch/FetchLoader.cpp: 17 * Modules/fetch/FetchResponse.h: 18 Remove unnecessary includes and forward declarations. 19 20 * Modules/fetch/DOMWindowFetch.js: 21 (fetch): 22 * Modules/fetch/FetchResponse.js: 23 (initializeFetchResponse): 24 * Modules/fetch/WorkerGlobalScopeFetch.js: 25 (fetch): 26 Improve style. 27 1 28 2016-12-01 Antoine Quint <graouts@apple.com> 2 29 -
trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.h
r206252 r209195 37 37 38 38 class DOMWindow; 39 class Dictionary;40 39 class FetchRequest; 41 40 -
trunk/Source/WebCore/Modules/fetch/DOMWindowFetch.js
r203675 r209195 32 32 try { 33 33 return @fetchRequest(new @Request(input, init)); 34 } catch (e) {34 } catch (e) { 35 35 return @Promise.@reject(e); 36 36 } -
trunk/Source/WebCore/Modules/fetch/FetchBody.cpp
r208993 r209195 32 32 #if ENABLE(FETCH_API) 33 33 34 #include "Dictionary.h"35 34 #include "Document.h" 36 35 #include "FetchBodyOwner.h" 37 36 #include "FetchHeaders.h" 38 37 #include "FetchResponseSource.h" 39 #include "FormData.h"40 38 #include "HTTPHeaderValues.h" 41 39 #include "HTTPParsers.h" -
trunk/Source/WebCore/Modules/fetch/FetchBody.h
r208985 r209195 47 47 namespace WebCore { 48 48 49 class DOMFormData;50 49 class FetchBodyOwner; 51 class FetchHeaders;52 50 class FetchResponseSource; 53 51 class ScriptExecutionContext; -
trunk/Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
r206252 r209195 33 33 34 34 #include "JSBlob.h" 35 #include "JSDOMPromise.h"36 35 #include "TextResourceDecoder.h" 37 36 -
trunk/Source/WebCore/Modules/fetch/FetchBodyOwner.cpp
r208985 r209195 33 33 34 34 #include "FetchLoader.h" 35 #include "FetchResponseSource.h"36 35 #include "HTTPParsers.h" 37 36 #include "JSBlob.h" -
trunk/Source/WebCore/Modules/fetch/FetchBodyOwner.h
r208985 r209195 34 34 #include "FetchBody.h" 35 35 #include "FetchHeaders.h" 36 #include "FetchLoader.h"37 36 #include "FetchLoaderClient.h" 38 37 #include "FetchResponseSource.h" 39 38 40 39 namespace WebCore { 40 41 class FetchLoader; 41 42 42 43 class FetchBodyOwner : public RefCounted<FetchBodyOwner>, public ActiveDOMObject { -
trunk/Source/WebCore/Modules/fetch/FetchInternals.js
r206870 r209195 72 72 } 73 73 return @Promise.prototype.@then.@call(@readableStreamDefaultReaderRead(reader), pull); 74 } catch (e) {74 } catch (e) { 75 75 return @Promise.@reject(e); 76 76 } -
trunk/Source/WebCore/Modules/fetch/FetchLoader.cpp
r208520 r209195 44 44 #include "TextResourceDecoder.h" 45 45 #include "ThreadableBlobRegistry.h" 46 #include "ThreadableLoader.h"47 46 48 47 namespace WebCore { -
trunk/Source/WebCore/Modules/fetch/FetchResponse.h
r208985 r209195 42 42 namespace WebCore { 43 43 44 class Dictionary;45 44 class FetchRequest; 46 45 class ReadableStreamSource; -
trunk/Source/WebCore/Modules/fetch/FetchResponse.js
r206870 r209195 47 47 48 48 if (body !== @undefined && body !== null) { 49 if (status == 101 || status == 204 || status == 205 || status== 304)49 if (status === 101 || status === 204 || status === 205 || status === 304) 50 50 @throwTypeError("Response cannot have a body with the given status"); 51 51 -
trunk/Source/WebCore/Modules/fetch/WorkerGlobalScopeFetch.js
r203675 r209195 32 32 try { 33 33 return @fetchRequest(new @Request(input, init)); 34 } catch (e) {34 } catch (e) { 35 35 return @Promise.@reject(e); 36 36 }
Note: See TracChangeset
for help on using the changeset viewer.