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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 // We are seeing crashes caused by nullptr (crbug.com/578849). But the frame | 768 // We are seeing crashes caused by nullptr (crbug.com/578849). But the frame |
769 // must be set here. TODO(horo): Find the root cause of the unset frame. | 769 // must be set here. TODO(horo): Find the root cause of the unset frame. |
770 DCHECK(frame); | 770 DCHECK(frame); |
771 if (!frame) | 771 if (!frame) |
772 return; | 772 return; |
773 TRACE_EVENT1( | 773 TRACE_EVENT1( |
774 "devtools.timeline", "ResourceReceiveResponse", "data", | 774 "devtools.timeline", "ResourceReceiveResponse", "data", |
775 InspectorReceiveResponseEvent::data(identifier, frame, response)); | 775 InspectorReceiveResponseEvent::data(identifier, frame, response)); |
776 DocumentLoader* loader = frame->loader().documentLoader(); | 776 DocumentLoader* loader = frame->loader().documentLoader(); |
777 InspectorInstrumentation::didReceiveResourceResponse( | 777 InspectorInstrumentation::didReceiveResourceResponse( |
778 frame, identifier, loader, response, resource()); | 778 frame->document(), identifier, loader, response, resource()); |
779 frame->console().reportResourceResponseReceived(loader, identifier, response); | 779 frame->console().reportResourceResponseReceived(loader, identifier, response); |
780 } | 780 } |
781 | 781 |
782 void DocumentThreadableLoader::handleResponse( | 782 void DocumentThreadableLoader::handleResponse( |
783 unsigned long identifier, | 783 unsigned long identifier, |
784 const ResourceResponse& response, | 784 const ResourceResponse& response, |
785 std::unique_ptr<WebDataConsumerHandle> handle) { | 785 std::unique_ptr<WebDataConsumerHandle> handle) { |
786 DCHECK(m_client); | 786 DCHECK(m_client); |
787 | 787 |
788 if (!m_actualRequest.isNull()) { | 788 if (!m_actualRequest.isNull()) { |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 } | 1147 } |
1148 | 1148 |
1149 DEFINE_TRACE(DocumentThreadableLoader) { | 1149 DEFINE_TRACE(DocumentThreadableLoader) { |
1150 visitor->trace(m_resource); | 1150 visitor->trace(m_resource); |
1151 visitor->trace(m_document); | 1151 visitor->trace(m_document); |
1152 ThreadableLoader::trace(visitor); | 1152 ThreadableLoader::trace(visitor); |
1153 RawResourceClient::trace(visitor); | 1153 RawResourceClient::trace(visitor); |
1154 } | 1154 } |
1155 | 1155 |
1156 } // namespace blink | 1156 } // namespace blink |
OLD | NEW |