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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 } | 781 } |
782 } | 782 } |
783 | 783 |
784 void DocumentThreadableLoader::ReportResponseReceived( | 784 void DocumentThreadableLoader::ReportResponseReceived( |
785 unsigned long identifier, | 785 unsigned long identifier, |
786 const ResourceResponse& response) { | 786 const ResourceResponse& response) { |
787 LocalFrame* frame = GetDocument() ? GetDocument()->GetFrame() : nullptr; | 787 LocalFrame* frame = GetDocument() ? GetDocument()->GetFrame() : nullptr; |
788 if (!frame) | 788 if (!frame) |
789 return; | 789 return; |
790 DocumentLoader* loader = frame->Loader().GetDocumentLoader(); | 790 DocumentLoader* loader = frame->Loader().GetDocumentLoader(); |
791 probe::didReceiveResourceResponse(frame, identifier, loader, response, | 791 probe::didReceiveResourceResponse(GetDocument(), identifier, loader, response, |
792 GetResource()); | 792 GetResource()); |
793 frame->Console().ReportResourceResponseReceived(loader, identifier, response); | 793 frame->Console().ReportResourceResponseReceived(loader, identifier, response); |
794 } | 794 } |
795 | 795 |
796 void DocumentThreadableLoader::HandleResponse( | 796 void DocumentThreadableLoader::HandleResponse( |
797 unsigned long identifier, | 797 unsigned long identifier, |
798 const ResourceResponse& response, | 798 const ResourceResponse& response, |
799 std::unique_ptr<WebDataConsumerHandle> handle) { | 799 std::unique_ptr<WebDataConsumerHandle> handle) { |
800 DCHECK(client_); | 800 DCHECK(client_); |
801 | 801 |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 } | 1163 } |
1164 | 1164 |
1165 DEFINE_TRACE(DocumentThreadableLoader) { | 1165 DEFINE_TRACE(DocumentThreadableLoader) { |
1166 visitor->Trace(resource_); | 1166 visitor->Trace(resource_); |
1167 visitor->Trace(loading_context_); | 1167 visitor->Trace(loading_context_); |
1168 ThreadableLoader::Trace(visitor); | 1168 ThreadableLoader::Trace(visitor); |
1169 RawResourceClient::Trace(visitor); | 1169 RawResourceClient::Trace(visitor); |
1170 } | 1170 } |
1171 | 1171 |
1172 } // namespace blink | 1172 } // namespace blink |
OLD | NEW |