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

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

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: reuse existing instrumentation for network Created 3 years, 11 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 // We are seeing crashes caused by nullptr (crbug.com/578849). But the frame 870 // We are seeing crashes caused by nullptr (crbug.com/578849). But the frame
871 // must be set here. TODO(horo): Find the root cause of the unset frame. 871 // must be set here. TODO(horo): Find the root cause of the unset frame.
872 DCHECK(frame); 872 DCHECK(frame);
873 if (!frame) 873 if (!frame)
874 return; 874 return;
875 TRACE_EVENT1( 875 TRACE_EVENT1(
876 "devtools.timeline", "ResourceReceiveResponse", "data", 876 "devtools.timeline", "ResourceReceiveResponse", "data",
877 InspectorReceiveResponseEvent::data(identifier, frame, response)); 877 InspectorReceiveResponseEvent::data(identifier, frame, response));
878 DocumentLoader* loader = frame->loader().documentLoader(); 878 DocumentLoader* loader = frame->loader().documentLoader();
879 InspectorInstrumentation::didReceiveResourceResponse( 879 InspectorInstrumentation::didReceiveResourceResponse(
880 frame, identifier, loader, response, resource()); 880 frame->document(), identifier, loader, response, resource());
881 frame->console().reportResourceResponseReceived(loader, identifier, response); 881 frame->console().reportResourceResponseReceived(loader, identifier, response);
882 } 882 }
883 883
884 void DocumentThreadableLoader::handleResponse( 884 void DocumentThreadableLoader::handleResponse(
885 unsigned long identifier, 885 unsigned long identifier,
886 const ResourceResponse& response, 886 const ResourceResponse& response,
887 std::unique_ptr<WebDataConsumerHandle> handle) { 887 std::unique_ptr<WebDataConsumerHandle> handle) {
888 DCHECK(m_client); 888 DCHECK(m_client);
889 889
890 if (!m_actualRequest.isNull()) { 890 if (!m_actualRequest.isNull()) {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 } 1249 }
1250 1250
1251 DEFINE_TRACE(DocumentThreadableLoader) { 1251 DEFINE_TRACE(DocumentThreadableLoader) {
1252 visitor->trace(m_resource); 1252 visitor->trace(m_resource);
1253 visitor->trace(m_document); 1253 visitor->trace(m_document);
1254 ThreadableLoader::trace(visitor); 1254 ThreadableLoader::trace(visitor);
1255 RawResourceClient::trace(visitor); 1255 RawResourceClient::trace(visitor);
1256 } 1256 }
1257 1257
1258 } // namespace blink 1258 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698