| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 mainResourceIdentifier()); | 497 mainResourceIdentifier()); |
| 498 m_frame->document()->addConsoleMessage(consoleMessage); | 498 m_frame->document()->addConsoleMessage(consoleMessage); |
| 499 cancelLoadAfterCSPDenied(response); | 499 cancelLoadAfterCSPDenied(response); |
| 500 return; | 500 return; |
| 501 } | 501 } |
| 502 } | 502 } |
| 503 } | 503 } |
| 504 | 504 |
| 505 DCHECK(!m_frame->page()->suspended()); | 505 DCHECK(!m_frame->page()->suspended()); |
| 506 | 506 |
| 507 if (response.didServiceWorkerNavigationPreload()) |
| 508 UseCounter::count(m_frame, UseCounter::ServiceWorkerNavigationPreload); |
| 507 m_response = response; | 509 m_response = response; |
| 508 | 510 |
| 509 if (isArchiveMIMEType(m_response.mimeType()) && | 511 if (isArchiveMIMEType(m_response.mimeType()) && |
| 510 m_mainResource->getDataBufferingPolicy() != BufferData) | 512 m_mainResource->getDataBufferingPolicy() != BufferData) |
| 511 m_mainResource->setDataBufferingPolicy(BufferData); | 513 m_mainResource->setDataBufferingPolicy(BufferData); |
| 512 | 514 |
| 513 if (!shouldContinueForResponse()) { | 515 if (!shouldContinueForResponse()) { |
| 514 InspectorInstrumentation::continueWithPolicyIgnore( | 516 InspectorInstrumentation::continueWithPolicyIgnore( |
| 515 m_frame, this, m_mainResource->identifier(), m_response, | 517 m_frame, this, m_mainResource->identifier(), m_response, |
| 516 m_mainResource.get()); | 518 m_mainResource.get()); |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 m_writer ? m_writer->encoding() : emptyAtom, true, | 816 m_writer ? m_writer->encoding() : emptyAtom, true, |
| 815 ForceSynchronousParsing); | 817 ForceSynchronousParsing); |
| 816 if (!source.isNull()) | 818 if (!source.isNull()) |
| 817 m_writer->appendReplacingData(source); | 819 m_writer->appendReplacingData(source); |
| 818 endWriting(); | 820 endWriting(); |
| 819 } | 821 } |
| 820 | 822 |
| 821 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 823 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 822 | 824 |
| 823 } // namespace blink | 825 } // namespace blink |
| OLD | NEW |