| 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 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/loader/DocumentThreadableLoader.h" | 32 #include "core/loader/DocumentThreadableLoader.h" |
| 33 | 33 |
| 34 #include "CachedRawResource.h" | |
| 35 #include "CachedResourceLoader.h" | |
| 36 #include "CachedResourceRequest.h" | |
| 37 #include "Document.h" | 34 #include "Document.h" |
| 38 #include "Frame.h" | 35 #include "Frame.h" |
| 39 #include "InspectorInstrumentation.h" | 36 #include "InspectorInstrumentation.h" |
| 40 #include "SecurityOrigin.h" | 37 #include "SecurityOrigin.h" |
| 41 #include "core/loader/CrossOriginAccessControl.h" | 38 #include "core/loader/CrossOriginAccessControl.h" |
| 42 #include "core/loader/CrossOriginPreflightResultCache.h" | 39 #include "core/loader/CrossOriginPreflightResultCache.h" |
| 43 #include "core/loader/DocumentThreadableLoaderClient.h" | 40 #include "core/loader/DocumentThreadableLoaderClient.h" |
| 44 #include "core/loader/FrameLoader.h" | 41 #include "core/loader/FrameLoader.h" |
| 45 #include "core/loader/ProgressTracker.h" | 42 #include "core/loader/ProgressTracker.h" |
| 46 #include "core/loader/ResourceLoader.h" | 43 #include "core/loader/ResourceLoader.h" |
| 47 #include "core/loader/ThreadableLoaderClient.h" | 44 #include "core/loader/ThreadableLoaderClient.h" |
| 45 #include "core/loader/cache/CachedRawResource.h" |
| 46 #include "core/loader/cache/CachedResourceLoader.h" |
| 47 #include "core/loader/cache/CachedResourceRequest.h" |
| 48 #include "core/platform/SchemeRegistry.h" | 48 #include "core/platform/SchemeRegistry.h" |
| 49 #include "core/platform/network/ResourceError.h" | 49 #include "core/platform/network/ResourceError.h" |
| 50 #include "core/platform/network/ResourceRequest.h" | 50 #include "core/platform/network/ResourceRequest.h" |
| 51 #include <wtf/Assertions.h> | 51 #include <wtf/Assertions.h> |
| 52 #include <wtf/UnusedParam.h> | 52 #include <wtf/UnusedParam.h> |
| 53 | 53 |
| 54 namespace WebCore { | 54 namespace WebCore { |
| 55 | 55 |
| 56 void DocumentThreadableLoader::loadResourceSynchronously(Document* document, con
st ResourceRequest& request, ThreadableLoaderClient& client, const ThreadableLoa
derOptions& options) | 56 void DocumentThreadableLoader::loadResourceSynchronously(Document* document, con
st ResourceRequest& request, ThreadableLoaderClient& client, const ThreadableLoa
derOptions& options) |
| 57 { | 57 { |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 428 |
| 429 return m_sameOriginRequest && securityOrigin()->canRequest(url); | 429 return m_sameOriginRequest && securityOrigin()->canRequest(url); |
| 430 } | 430 } |
| 431 | 431 |
| 432 SecurityOrigin* DocumentThreadableLoader::securityOrigin() const | 432 SecurityOrigin* DocumentThreadableLoader::securityOrigin() const |
| 433 { | 433 { |
| 434 return m_options.securityOrigin ? m_options.securityOrigin.get() : m_documen
t->securityOrigin(); | 434 return m_options.securityOrigin ? m_options.securityOrigin.get() : m_documen
t->securityOrigin(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 } // namespace WebCore | 437 } // namespace WebCore |
| OLD | NEW |