| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 4 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 5 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 5 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 6 * (http://www.torchmobile.com/) | 6 * (http://www.torchmobile.com/) |
| 7 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 7 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 8 * Copyright (C) Research In Motion Limited 2009. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2009. All rights reserved. |
| 9 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> | 9 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> |
| 10 * Copyright (C) 2011 Google Inc. All rights reserved. | 10 * Copyright (C) 2011 Google Inc. All rights reserved. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 #include "platform/loader/fetch/ResourceFetcher.h" | 93 #include "platform/loader/fetch/ResourceFetcher.h" |
| 94 #include "platform/network/HTTPParsers.h" | 94 #include "platform/network/HTTPParsers.h" |
| 95 #include "platform/network/ResourceRequest.h" | 95 #include "platform/network/ResourceRequest.h" |
| 96 #include "platform/scroll/ScrollAnimatorBase.h" | 96 #include "platform/scroll/ScrollAnimatorBase.h" |
| 97 #include "platform/weborigin/SecurityOrigin.h" | 97 #include "platform/weborigin/SecurityOrigin.h" |
| 98 #include "platform/weborigin/SecurityPolicy.h" | 98 #include "platform/weborigin/SecurityPolicy.h" |
| 99 #include "platform/weborigin/Suborigin.h" | 99 #include "platform/weborigin/Suborigin.h" |
| 100 #include "public/platform/WebCachePolicy.h" | 100 #include "public/platform/WebCachePolicy.h" |
| 101 #include "public/platform/WebFeaturePolicy.h" | 101 #include "public/platform/WebFeaturePolicy.h" |
| 102 #include "public/platform/WebURLRequest.h" | 102 #include "public/platform/WebURLRequest.h" |
| 103 #include "public/platform/modules/serviceworker/WebServiceWorkerNetworkProvider.
h" |
| 103 #include "wtf/AutoReset.h" | 104 #include "wtf/AutoReset.h" |
| 104 #include "wtf/text/CString.h" | 105 #include "wtf/text/CString.h" |
| 105 #include "wtf/text/WTFString.h" | 106 #include "wtf/text/WTFString.h" |
| 106 | 107 |
| 107 using blink::WebURLRequest; | 108 using blink::WebURLRequest; |
| 108 | 109 |
| 109 namespace blink { | 110 namespace blink { |
| 110 | 111 |
| 111 using namespace HTMLNames; | 112 using namespace HTMLNames; |
| 112 | 113 |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 | 480 |
| 480 // When the embedder gets notified (above) that the new navigation has | 481 // When the embedder gets notified (above) that the new navigation has |
| 481 // committed, the embedder will drop the old Content Security Policy and | 482 // committed, the embedder will drop the old Content Security Policy and |
| 482 // therefore now is a good time to report to the embedder the Content Security | 483 // therefore now is a good time to report to the embedder the Content Security |
| 483 // Policies that have accumulated so far for the new navigation. | 484 // Policies that have accumulated so far for the new navigation. |
| 484 m_frame->securityContext()->contentSecurityPolicy()->reportAccumulatedHeaders( | 485 m_frame->securityContext()->contentSecurityPolicy()->reportAccumulatedHeaders( |
| 485 client()); | 486 client()); |
| 486 | 487 |
| 487 // didObserveLoadingBehavior() must be called after dispatchDidCommitLoad() is | 488 // didObserveLoadingBehavior() must be called after dispatchDidCommitLoad() is |
| 488 // called for the metrics tracking logic to handle it properly. | 489 // called for the metrics tracking logic to handle it properly. |
| 489 if (client()->isControlledByServiceWorker(*m_documentLoader)) { | 490 if (m_documentLoader->getServiceWorkerNetworkProvider() && |
| 491 m_documentLoader->getServiceWorkerNetworkProvider() |
| 492 ->isControlledByServiceWorker()) { |
| 490 client()->didObserveLoadingBehavior( | 493 client()->didObserveLoadingBehavior( |
| 491 WebLoadingBehaviorServiceWorkerControlled); | 494 WebLoadingBehaviorServiceWorkerControlled); |
| 492 } | 495 } |
| 493 | 496 |
| 494 // Links with media values need more information (like viewport information). | 497 // Links with media values need more information (like viewport information). |
| 495 // This happens after the first chunk is parsed in HTMLDocumentParser. | 498 // This happens after the first chunk is parsed in HTMLDocumentParser. |
| 496 m_documentLoader->dispatchLinkHeaderPreloads(nullptr, | 499 m_documentLoader->dispatchLinkHeaderPreloads(nullptr, |
| 497 LinkLoader::OnlyLoadNonMedia); | 500 LinkLoader::OnlyLoadNonMedia); |
| 498 | 501 |
| 499 TRACE_EVENT1("devtools.timeline", "CommitLoad", "data", | 502 TRACE_EVENT1("devtools.timeline", "CommitLoad", "data", |
| (...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 frameLoadRequest.clientRedirect()); | 1980 frameLoadRequest.clientRedirect()); |
| 1978 | 1981 |
| 1979 loader->setLoadType(loadType); | 1982 loader->setLoadType(loadType); |
| 1980 loader->setNavigationType(navigationType); | 1983 loader->setNavigationType(navigationType); |
| 1981 loader->setReplacesCurrentHistoryItem(loadType == | 1984 loader->setReplacesCurrentHistoryItem(loadType == |
| 1982 FrameLoadTypeReplaceCurrentItem); | 1985 FrameLoadTypeReplaceCurrentItem); |
| 1983 return loader; | 1986 return loader; |
| 1984 } | 1987 } |
| 1985 | 1988 |
| 1986 } // namespace blink | 1989 } // namespace blink |
| OLD | NEW |