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

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

Issue 1184403003: Offer Resource Timing in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style fix Created 5 years, 6 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/loader/DocumentThreadableLoader.h ('k') | Source/core/loader/FrameFetchContext.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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/DocumentThreadableLoader.h ('k') | Source/core/loader/FrameFetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698