OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013, Intel Corporation | 3 * Copyright (C) 2013, Intel Corporation |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 void DocumentThreadableLoader::dataDownloaded(Resource* resource, int dataLength
) | 362 void DocumentThreadableLoader::dataDownloaded(Resource* resource, int dataLength
) |
363 { | 363 { |
364 ASSERT(m_client); | 364 ASSERT(m_client); |
365 ASSERT_UNUSED(resource, resource == this->resource()); | 365 ASSERT_UNUSED(resource, resource == this->resource()); |
366 ASSERT(!m_actualRequest); | 366 ASSERT(!m_actualRequest); |
367 ASSERT(m_async); | 367 ASSERT(m_async); |
368 | 368 |
369 m_client->didDownloadData(dataLength); | 369 m_client->didDownloadData(dataLength); |
370 } | 370 } |
371 | 371 |
| 372 void DocumentThreadableLoader::didReceiveResourceTiming(Resource* resource, cons
t ResourceTimingInfo& info) |
| 373 { |
| 374 ASSERT(m_client); |
| 375 ASSERT_UNUSED(resource, resource == this->resource()); |
| 376 ASSERT(m_async); |
| 377 |
| 378 m_client->didReceiveResourceTiming(info); |
| 379 } |
| 380 |
372 void DocumentThreadableLoader::responseReceived(Resource* resource, const Resour
ceResponse& response, PassOwnPtr<WebDataConsumerHandle> handle) | 381 void DocumentThreadableLoader::responseReceived(Resource* resource, const Resour
ceResponse& response, PassOwnPtr<WebDataConsumerHandle> handle) |
373 { | 382 { |
374 ASSERT_UNUSED(resource, resource == this->resource()); | 383 ASSERT_UNUSED(resource, resource == this->resource()); |
375 ASSERT(m_async); | 384 ASSERT(m_async); |
376 | 385 |
377 if (handle) | 386 if (handle) |
378 m_isUsingDataConsumerHandle = true; | 387 m_isUsingDataConsumerHandle = true; |
379 | 388 |
380 handleResponse(resource->identifier(), response, handle); | 389 handleResponse(resource->identifier(), response, handle); |
381 } | 390 } |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 return DoNotAllowStoredCredentials; | 664 return DoNotAllowStoredCredentials; |
656 return m_resourceLoaderOptions.allowCredentials; | 665 return m_resourceLoaderOptions.allowCredentials; |
657 } | 666 } |
658 | 667 |
659 SecurityOrigin* DocumentThreadableLoader::securityOrigin() const | 668 SecurityOrigin* DocumentThreadableLoader::securityOrigin() const |
660 { | 669 { |
661 return m_securityOrigin ? m_securityOrigin.get() : m_document.securityOrigin
(); | 670 return m_securityOrigin ? m_securityOrigin.get() : m_document.securityOrigin
(); |
662 } | 671 } |
663 | 672 |
664 } // namespace blink | 673 } // namespace blink |
OLD | NEW |