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

Side by Side Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.h

Issue 2467233002: Remove "legacy" experimental stream support (Closed)
Patch Set: fix Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> 3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * Copyright (C) 2012 Intel Corporation 5 * Copyright (C) 2012 Intel Corporation
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class BlobDataHandle; 53 class BlobDataHandle;
54 class DOMArrayBuffer; 54 class DOMArrayBuffer;
55 class DOMArrayBufferView; 55 class DOMArrayBufferView;
56 class Document; 56 class Document;
57 class DocumentParser; 57 class DocumentParser;
58 class ExceptionState; 58 class ExceptionState;
59 class ExecutionContext; 59 class ExecutionContext;
60 class FormData; 60 class FormData;
61 class ScriptState; 61 class ScriptState;
62 class SharedBuffer; 62 class SharedBuffer;
63 class Stream;
64 class TextResourceDecoder; 63 class TextResourceDecoder;
65 class ThreadableLoader; 64 class ThreadableLoader;
66 class WebDataConsumerHandle; 65 class WebDataConsumerHandle;
67 class XMLHttpRequestUpload; 66 class XMLHttpRequestUpload;
68 67
69 typedef int ExceptionCode; 68 typedef int ExceptionCode;
70 69
71 class XMLHttpRequest final : public XMLHttpRequestEventTarget, 70 class XMLHttpRequest final : public XMLHttpRequestEventTarget,
72 private ThreadableLoaderClient, 71 private ThreadableLoaderClient,
73 public DocumentParserClient, 72 public DocumentParserClient,
(...skipping 16 matching lines...) Expand all
90 kDone = 4 89 kDone = 4
91 }; 90 };
92 91
93 enum ResponseTypeCode { 92 enum ResponseTypeCode {
94 ResponseTypeDefault, 93 ResponseTypeDefault,
95 ResponseTypeText, 94 ResponseTypeText,
96 ResponseTypeJSON, 95 ResponseTypeJSON,
97 ResponseTypeDocument, 96 ResponseTypeDocument,
98 ResponseTypeBlob, 97 ResponseTypeBlob,
99 ResponseTypeArrayBuffer, 98 ResponseTypeArrayBuffer,
100 ResponseTypeLegacyStream,
101 }; 99 };
102 100
103 // ActiveDOMObject 101 // ActiveDOMObject
104 void contextDestroyed() override; 102 void contextDestroyed() override;
105 ExecutionContext* getExecutionContext() const override; 103 ExecutionContext* getExecutionContext() const override;
106 void suspend() override; 104 void suspend() override;
107 void resume() override; 105 void resume() override;
108 106
109 // ScriptWrappable 107 // ScriptWrappable
110 bool hasPendingActivity() const final; 108 bool hasPendingActivity() const final;
(...skipping 27 matching lines...) Expand all
138 const AtomicString& value, 136 const AtomicString& value,
139 ExceptionState&); 137 ExceptionState&);
140 void overrideMimeType(const AtomicString& override, ExceptionState&); 138 void overrideMimeType(const AtomicString& override, ExceptionState&);
141 String getAllResponseHeaders() const; 139 String getAllResponseHeaders() const;
142 const AtomicString& getResponseHeader(const AtomicString&) const; 140 const AtomicString& getResponseHeader(const AtomicString&) const;
143 ScriptString responseText(ExceptionState&); 141 ScriptString responseText(ExceptionState&);
144 ScriptString responseJSONSource(); 142 ScriptString responseJSONSource();
145 Document* responseXML(ExceptionState&); 143 Document* responseXML(ExceptionState&);
146 Blob* responseBlob(); 144 Blob* responseBlob();
147 DOMArrayBuffer* responseArrayBuffer(); 145 DOMArrayBuffer* responseArrayBuffer();
148 Stream* responseLegacyStream();
149 unsigned timeout() const { return m_timeoutMilliseconds; } 146 unsigned timeout() const { return m_timeoutMilliseconds; }
150 void setTimeout(unsigned timeout, ExceptionState&); 147 void setTimeout(unsigned timeout, ExceptionState&);
151 ResponseTypeCode getResponseTypeCode() const { return m_responseTypeCode; } 148 ResponseTypeCode getResponseTypeCode() const { return m_responseTypeCode; }
152 String responseType(); 149 String responseType();
153 void setResponseType(const String&, ExceptionState&); 150 void setResponseType(const String&, ExceptionState&);
154 String responseURL(); 151 String responseURL();
155 152
156 // For Inspector. 153 // For Inspector.
157 void sendForInspectorXHRReplay(PassRefPtr<EncodedFormData>, ExceptionState&); 154 void sendForInspectorXHRReplay(PassRefPtr<EncodedFormData>, ExceptionState&);
158 155
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 Member<XMLHttpRequestUpload> m_upload; 274 Member<XMLHttpRequestUpload> m_upload;
278 275
279 KURL m_url; 276 KURL m_url;
280 AtomicString m_method; 277 AtomicString m_method;
281 HTTPHeaderMap m_requestHeaders; 278 HTTPHeaderMap m_requestHeaders;
282 // Not converted to ASCII lowercase. Must be lowered later or compared 279 // Not converted to ASCII lowercase. Must be lowered later or compared
283 // using case insensitive comparison functions if needed. 280 // using case insensitive comparison functions if needed.
284 AtomicString m_mimeTypeOverride; 281 AtomicString m_mimeTypeOverride;
285 unsigned long m_timeoutMilliseconds; 282 unsigned long m_timeoutMilliseconds;
286 TraceWrapperMember<Blob> m_responseBlob; 283 TraceWrapperMember<Blob> m_responseBlob;
287 TraceWrapperMember<Stream> m_responseLegacyStream;
288 284
289 Member<ThreadableLoader> m_loader; 285 Member<ThreadableLoader> m_loader;
290 State m_state; 286 State m_state;
291 287
292 ResourceResponse m_response; 288 ResourceResponse m_response;
293 String m_finalResponseCharset; 289 String m_finalResponseCharset;
294 290
295 std::unique_ptr<TextResourceDecoder> m_decoder; 291 std::unique_ptr<TextResourceDecoder> m_decoder;
296 292
297 ScriptString m_responseText; 293 ScriptString m_responseText;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // option. 336 // option.
341 bool m_downloadingToFile; 337 bool m_downloadingToFile;
342 bool m_responseTextOverflow; 338 bool m_responseTextOverflow;
343 }; 339 };
344 340
345 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*); 341 std::ostream& operator<<(std::ostream&, const XMLHttpRequest*);
346 342
347 } // namespace blink 343 } // namespace blink
348 344
349 #endif // XMLHttpRequest_h 345 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/streams/Stream.idl ('k') | third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698