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

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

Issue 603903003: [Streams] Pass WebDataConsumerHandle when the response arrives. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@web-data-pipe
Patch Set: Created 6 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual void trace(Visitor*) override; 151 virtual void trace(Visitor*) override;
152 152
153 private: 153 private:
154 class BlobLoader; 154 class BlobLoader;
155 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>); 155 XMLHttpRequest(ExecutionContext*, PassRefPtr<SecurityOrigin>);
156 156
157 Document* document() const; 157 Document* document() const;
158 SecurityOrigin* securityOrigin() const; 158 SecurityOrigin* securityOrigin() const;
159 159
160 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent) override; 160 virtual void didSendData(unsigned long long bytesSent, unsigned long long to talBytesToBeSent) override;
161 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&) override; 161 virtual void didReceiveResponse(unsigned long identifier, const ResourceResp onse&, PassOwnPtr<WebDataConsumerHandle>) override;
162 virtual void didReceiveData(const char* data, unsigned dataLength) override; 162 virtual void didReceiveData(const char* data, unsigned dataLength) override;
163 // When responseType is set to "blob", didDownloadData() is called instead 163 // When responseType is set to "blob", didDownloadData() is called instead
164 // of didReceiveData(). 164 // of didReceiveData().
165 virtual void didDownloadData(int dataLength) override; 165 virtual void didDownloadData(int dataLength) override;
166 virtual void didFinishLoading(unsigned long identifier, double finishTime) o verride; 166 virtual void didFinishLoading(unsigned long identifier, double finishTime) o verride;
167 virtual void didFail(const ResourceError&) override; 167 virtual void didFail(const ResourceError&) override;
168 virtual void didFailRedirectCheck() override; 168 virtual void didFailRedirectCheck() override;
169 169
170 // BlobLoader notifications. 170 // BlobLoader notifications.
171 void didFinishLoadingInternal(); 171 void didFinishLoadingInternal();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 bool m_uploadComplete; 304 bool m_uploadComplete;
305 bool m_sameOriginRequest; 305 bool m_sameOriginRequest;
306 // True iff the ongoing resource loading is using the downloadToFile 306 // True iff the ongoing resource loading is using the downloadToFile
307 // option. 307 // option.
308 bool m_downloadingToFile; 308 bool m_downloadingToFile;
309 }; 309 };
310 310
311 } // namespace blink 311 } // namespace blink
312 312
313 #endif // XMLHttpRequest_h 313 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerScriptLoader.cpp ('k') | Source/core/xmlhttprequest/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698