Chromium Code Reviews| 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->document(), | |
|
tkent
2017/02/03 00:55:19
nit: You can use UseCounter::count(m_frame, ...).
falken
2017/02/03 01:07:07
Done.
| |
| 509 UseCounter::ServiceWorkerNavigationPreload); | |
| 510 } | |
| 507 m_response = response; | 511 m_response = response; |
| 508 | 512 |
| 509 if (isArchiveMIMEType(m_response.mimeType()) && | 513 if (isArchiveMIMEType(m_response.mimeType()) && |
| 510 m_mainResource->getDataBufferingPolicy() != BufferData) | 514 m_mainResource->getDataBufferingPolicy() != BufferData) |
| 511 m_mainResource->setDataBufferingPolicy(BufferData); | 515 m_mainResource->setDataBufferingPolicy(BufferData); |
| 512 | 516 |
| 513 if (!shouldContinueForResponse()) { | 517 if (!shouldContinueForResponse()) { |
| 514 InspectorInstrumentation::continueWithPolicyIgnore( | 518 InspectorInstrumentation::continueWithPolicyIgnore( |
| 515 m_frame, this, m_mainResource->identifier(), m_response, | 519 m_frame, this, m_mainResource->identifier(), m_response, |
| 516 m_mainResource.get()); | 520 m_mainResource.get()); |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 814 m_writer ? m_writer->encoding() : emptyAtom, true, | 818 m_writer ? m_writer->encoding() : emptyAtom, true, |
| 815 ForceSynchronousParsing); | 819 ForceSynchronousParsing); |
| 816 if (!source.isNull()) | 820 if (!source.isNull()) |
| 817 m_writer->appendReplacingData(source); | 821 m_writer->appendReplacingData(source); |
| 818 endWriting(); | 822 endWriting(); |
| 819 } | 823 } |
| 820 | 824 |
| 821 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); | 825 DEFINE_WEAK_IDENTIFIER_MAP(DocumentLoader); |
| 822 | 826 |
| 823 } // namespace blink | 827 } // namespace blink |
| OLD | NEW |