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 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |