| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |