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

Side by Side Diff: Source/web/AssociatedURLLoader.cpp

Issue 23632004: Add encoded_data_length argument to didDownloadData delegate method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months 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/fetch/ResourceLoader.cpp ('k') | Source/web/tests/AssociatedURLLoaderTest.cpp » ('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) 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2010, 2011, 2012 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 validatedResponse.clearHTTPHeaderField(*it); 219 validatedResponse.clearHTTPHeaderField(*it);
220 } 220 }
221 m_client->didReceiveResponse(m_loader, validatedResponse); 221 m_client->didReceiveResponse(m_loader, validatedResponse);
222 } 222 }
223 223
224 void AssociatedURLLoader::ClientAdapter::didDownloadData(int dataLength) 224 void AssociatedURLLoader::ClientAdapter::didDownloadData(int dataLength)
225 { 225 {
226 if (!m_client) 226 if (!m_client)
227 return; 227 return;
228 228
229 m_client->didDownloadData(m_loader, dataLength); 229 m_client->didDownloadData(m_loader, dataLength, -1);
230 } 230 }
231 231
232 void AssociatedURLLoader::ClientAdapter::didReceiveData(const char* data, int da taLength) 232 void AssociatedURLLoader::ClientAdapter::didReceiveData(const char* data, int da taLength)
233 { 233 {
234 if (!m_client) 234 if (!m_client)
235 return; 235 return;
236 236
237 m_client->didReceiveData(m_loader, data, dataLength, -1); 237 m_client->didReceiveData(m_loader, data, dataLength, -1);
238 } 238 }
239 239
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 m_loader->cancel(); 364 m_loader->cancel();
365 } 365 }
366 366
367 void AssociatedURLLoader::setDefersLoading(bool defersLoading) 367 void AssociatedURLLoader::setDefersLoading(bool defersLoading)
368 { 368 {
369 if (m_loader) 369 if (m_loader)
370 m_loader->setDefersLoading(defersLoading); 370 m_loader->setDefersLoading(defersLoading);
371 } 371 }
372 372
373 } // namespace WebKit 373 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/core/fetch/ResourceLoader.cpp ('k') | Source/web/tests/AssociatedURLLoaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698