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

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

Issue 2900613002: Support DevTools for off-main-thread-fetch (Closed)
Patch Set: incorporated dgozman's comment Created 3 years, 5 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
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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 } 844 }
845 } 845 }
846 846
847 void DocumentThreadableLoader::ReportResponseReceived( 847 void DocumentThreadableLoader::ReportResponseReceived(
848 unsigned long identifier, 848 unsigned long identifier,
849 const ResourceResponse& response) { 849 const ResourceResponse& response) {
850 LocalFrame* frame = GetDocument() ? GetDocument()->GetFrame() : nullptr; 850 LocalFrame* frame = GetDocument() ? GetDocument()->GetFrame() : nullptr;
851 if (!frame) 851 if (!frame)
852 return; 852 return;
853 DocumentLoader* loader = frame->Loader().GetDocumentLoader(); 853 DocumentLoader* loader = frame->Loader().GetDocumentLoader();
854 probe::didReceiveResourceResponse(frame, identifier, loader, response, 854 probe::didReceiveResourceResponse(GetDocument(), identifier, loader, response,
855 GetResource()); 855 GetResource());
856 frame->Console().ReportResourceResponseReceived(loader, identifier, response); 856 frame->Console().ReportResourceResponseReceived(loader, identifier, response);
857 } 857 }
858 858
859 void DocumentThreadableLoader::HandleResponse( 859 void DocumentThreadableLoader::HandleResponse(
860 unsigned long identifier, 860 unsigned long identifier,
861 WebURLRequest::FetchCredentialsMode credentials_mode, 861 WebURLRequest::FetchCredentialsMode credentials_mode,
862 const ResourceResponse& response, 862 const ResourceResponse& response,
863 std::unique_ptr<WebDataConsumerHandle> handle) { 863 std::unique_ptr<WebDataConsumerHandle> handle) {
864 DCHECK(client_); 864 DCHECK(client_);
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 } 1260 }
1261 1261
1262 DEFINE_TRACE(DocumentThreadableLoader) { 1262 DEFINE_TRACE(DocumentThreadableLoader) {
1263 visitor->Trace(resource_); 1263 visitor->Trace(resource_);
1264 visitor->Trace(loading_context_); 1264 visitor->Trace(loading_context_);
1265 ThreadableLoader::Trace(visitor); 1265 ThreadableLoader::Trace(visitor);
1266 RawResourceClient::Trace(visitor); 1266 RawResourceClient::Trace(visitor);
1267 } 1267 }
1268 1268
1269 } // namespace blink 1269 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698