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

Side by Side Diff: Source/core/loader/WorkerThreadableLoader.cpp

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
« no previous file with comments | « Source/core/loader/WorkerThreadableLoader.h ('k') | Source/core/page/EventSource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void WorkerThreadableLoader::MainThreadBridge::clearClientWrapper() 205 void WorkerThreadableLoader::MainThreadBridge::clearClientWrapper()
206 { 206 {
207 m_workerClientWrapper->clearClient(); 207 m_workerClientWrapper->clearClient();
208 } 208 }
209 209
210 void WorkerThreadableLoader::MainThreadBridge::didSendData(unsigned long long by tesSent, unsigned long long totalBytesToBeSent) 210 void WorkerThreadableLoader::MainThreadBridge::didSendData(unsigned long long by tesSent, unsigned long long totalBytesToBeSent)
211 { 211 {
212 m_clientBridge->didSendData(bytesSent, totalBytesToBeSent); 212 m_clientBridge->didSendData(bytesSent, totalBytesToBeSent);
213 } 213 }
214 214
215 void WorkerThreadableLoader::MainThreadBridge::didReceiveResponse(unsigned long identifier, const ResourceResponse& response) 215 void WorkerThreadableLoader::MainThreadBridge::didReceiveResponse(unsigned long identifier, const ResourceResponse& response, PassOwnPtr<WebDataConsumerHandle> handle)
216 { 216 {
217 m_clientBridge->didReceiveResponse(identifier, response); 217 m_clientBridge->didReceiveResponse(identifier, response, handle);
218 } 218 }
219 219
220 void WorkerThreadableLoader::MainThreadBridge::didReceiveData(const char* data, unsigned dataLength) 220 void WorkerThreadableLoader::MainThreadBridge::didReceiveData(const char* data, unsigned dataLength)
221 { 221 {
222 m_clientBridge->didReceiveData(data, dataLength); 222 m_clientBridge->didReceiveData(data, dataLength);
223 } 223 }
224 224
225 void WorkerThreadableLoader::MainThreadBridge::didDownloadData(int dataLength) 225 void WorkerThreadableLoader::MainThreadBridge::didDownloadData(int dataLength)
226 { 226 {
227 m_clientBridge->didDownloadData(dataLength); 227 m_clientBridge->didDownloadData(dataLength);
(...skipping 18 matching lines...) Expand all
246 { 246 {
247 m_clientBridge->didFailAccessControlCheck(error); 247 m_clientBridge->didFailAccessControlCheck(error);
248 } 248 }
249 249
250 void WorkerThreadableLoader::MainThreadBridge::didFailRedirectCheck() 250 void WorkerThreadableLoader::MainThreadBridge::didFailRedirectCheck()
251 { 251 {
252 m_clientBridge->didFailRedirectCheck(); 252 m_clientBridge->didFailRedirectCheck();
253 } 253 }
254 254
255 } // namespace blink 255 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/loader/WorkerThreadableLoader.h ('k') | Source/core/page/EventSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698