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

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

Issue 2649923007: Revert of Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: Created 3 years, 10 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 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 // We are seeing crashes caused by nullptr (crbug.com/578849). But the frame 879 // We are seeing crashes caused by nullptr (crbug.com/578849). But the frame
880 // must be set here. TODO(horo): Find the root cause of the unset frame. 880 // must be set here. TODO(horo): Find the root cause of the unset frame.
881 DCHECK(frame); 881 DCHECK(frame);
882 if (!frame) 882 if (!frame)
883 return; 883 return;
884 TRACE_EVENT1( 884 TRACE_EVENT1(
885 "devtools.timeline", "ResourceReceiveResponse", "data", 885 "devtools.timeline", "ResourceReceiveResponse", "data",
886 InspectorReceiveResponseEvent::data(identifier, frame, response)); 886 InspectorReceiveResponseEvent::data(identifier, frame, response));
887 DocumentLoader* loader = frame->loader().documentLoader(); 887 DocumentLoader* loader = frame->loader().documentLoader();
888 InspectorInstrumentation::didReceiveResourceResponse( 888 InspectorInstrumentation::didReceiveResourceResponse(
889 frame->document(), identifier, loader, response, resource()); 889 frame, identifier, loader, response, resource());
890 frame->console().reportResourceResponseReceived(loader, identifier, response); 890 frame->console().reportResourceResponseReceived(loader, identifier, response);
891 } 891 }
892 892
893 void DocumentThreadableLoader::handleResponse( 893 void DocumentThreadableLoader::handleResponse(
894 unsigned long identifier, 894 unsigned long identifier,
895 const ResourceResponse& response, 895 const ResourceResponse& response,
896 std::unique_ptr<WebDataConsumerHandle> handle) { 896 std::unique_ptr<WebDataConsumerHandle> handle) {
897 DCHECK(m_client); 897 DCHECK(m_client);
898 898
899 if (!m_actualRequest.isNull()) { 899 if (!m_actualRequest.isNull()) {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 } 1258 }
1259 1259
1260 DEFINE_TRACE(DocumentThreadableLoader) { 1260 DEFINE_TRACE(DocumentThreadableLoader) {
1261 visitor->trace(m_resource); 1261 visitor->trace(m_resource);
1262 visitor->trace(m_document); 1262 visitor->trace(m_document);
1263 ThreadableLoader::trace(visitor); 1263 ThreadableLoader::trace(visitor);
1264 RawResourceClient::trace(visitor); 1264 RawResourceClient::trace(visitor);
1265 } 1265 }
1266 1266
1267 } // namespace blink 1267 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698