| 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 827 } | 827 } |
| 828 } | 828 } |
| 829 | 829 |
| 830 void DocumentThreadableLoader::ReportResponseReceived( | 830 void DocumentThreadableLoader::ReportResponseReceived( |
| 831 unsigned long identifier, | 831 unsigned long identifier, |
| 832 const ResourceResponse& response) { | 832 const ResourceResponse& response) { |
| 833 LocalFrame* frame = GetDocument() ? GetDocument()->GetFrame() : nullptr; | 833 LocalFrame* frame = GetDocument() ? GetDocument()->GetFrame() : nullptr; |
| 834 if (!frame) | 834 if (!frame) |
| 835 return; | 835 return; |
| 836 DocumentLoader* loader = frame->Loader().GetDocumentLoader(); | 836 DocumentLoader* loader = frame->Loader().GetDocumentLoader(); |
| 837 probe::didReceiveResourceResponse(frame, identifier, loader, response, | 837 probe::didReceiveResourceResponse(GetDocument(), identifier, loader, response, |
| 838 GetResource()); | 838 GetResource()); |
| 839 frame->Console().ReportResourceResponseReceived(loader, identifier, response); | 839 frame->Console().ReportResourceResponseReceived(loader, identifier, response); |
| 840 } | 840 } |
| 841 | 841 |
| 842 void DocumentThreadableLoader::HandleResponse( | 842 void DocumentThreadableLoader::HandleResponse( |
| 843 unsigned long identifier, | 843 unsigned long identifier, |
| 844 WebURLRequest::FetchRequestMode request_mode, | 844 WebURLRequest::FetchRequestMode request_mode, |
| 845 WebURLRequest::FetchCredentialsMode credentials_mode, | 845 WebURLRequest::FetchCredentialsMode credentials_mode, |
| 846 const ResourceResponse& response, | 846 const ResourceResponse& response, |
| 847 std::unique_ptr<WebDataConsumerHandle> handle) { | 847 std::unique_ptr<WebDataConsumerHandle> handle) { |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1245 } | 1245 } |
| 1246 | 1246 |
| 1247 DEFINE_TRACE(DocumentThreadableLoader) { | 1247 DEFINE_TRACE(DocumentThreadableLoader) { |
| 1248 visitor->Trace(resource_); | 1248 visitor->Trace(resource_); |
| 1249 visitor->Trace(loading_context_); | 1249 visitor->Trace(loading_context_); |
| 1250 ThreadableLoader::Trace(visitor); | 1250 ThreadableLoader::Trace(visitor); |
| 1251 RawResourceClient::Trace(visitor); | 1251 RawResourceClient::Trace(visitor); |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 } // namespace blink | 1254 } // namespace blink |
| OLD | NEW |