| 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 30 matching lines...) Expand all Loading... |
| 41 #include "core/frame/ContentSecurityPolicy.h" | 41 #include "core/frame/ContentSecurityPolicy.h" |
| 42 #include "core/frame/Frame.h" | 42 #include "core/frame/Frame.h" |
| 43 #include "core/inspector/InspectorInstrumentation.h" | 43 #include "core/inspector/InspectorInstrumentation.h" |
| 44 #include "core/loader/CrossOriginPreflightResultCache.h" | 44 #include "core/loader/CrossOriginPreflightResultCache.h" |
| 45 #include "core/loader/DocumentThreadableLoaderClient.h" | 45 #include "core/loader/DocumentThreadableLoaderClient.h" |
| 46 #include "core/loader/FrameLoader.h" | 46 #include "core/loader/FrameLoader.h" |
| 47 #include "core/loader/ThreadableLoaderClient.h" | 47 #include "core/loader/ThreadableLoaderClient.h" |
| 48 #include "platform/SharedBuffer.h" | 48 #include "platform/SharedBuffer.h" |
| 49 #include "platform/network/ResourceError.h" | 49 #include "platform/network/ResourceError.h" |
| 50 #include "platform/network/ResourceRequest.h" | 50 #include "platform/network/ResourceRequest.h" |
| 51 #include "weborigin/SchemeRegistry.h" | 51 #include "platform/weborigin/SchemeRegistry.h" |
| 52 #include "weborigin/SecurityOrigin.h" | 52 #include "platform/weborigin/SecurityOrigin.h" |
| 53 #include "wtf/Assertions.h" | 53 #include "wtf/Assertions.h" |
| 54 | 54 |
| 55 namespace WebCore { | 55 namespace WebCore { |
| 56 | 56 |
| 57 void DocumentThreadableLoader::loadResourceSynchronously(Document* document, con
st ResourceRequest& request, ThreadableLoaderClient& client, const ThreadableLoa
derOptions& options) | 57 void DocumentThreadableLoader::loadResourceSynchronously(Document* document, con
st ResourceRequest& request, ThreadableLoaderClient& client, const ThreadableLoa
derOptions& options) |
| 58 { | 58 { |
| 59 // The loader will be deleted as soon as this function exits. | 59 // The loader will be deleted as soon as this function exits. |
| 60 RefPtr<DocumentThreadableLoader> loader = adoptRef(new DocumentThreadableLoa
der(document, &client, LoadSynchronously, request, options)); | 60 RefPtr<DocumentThreadableLoader> loader = adoptRef(new DocumentThreadableLoa
der(document, &client, LoadSynchronously, request, options)); |
| 61 ASSERT(loader->hasOneRef()); | 61 ASSERT(loader->hasOneRef()); |
| 62 } | 62 } |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 | 507 |
| 508 if (!(requestUrl.user().isEmpty() && requestUrl.pass().isEmpty())) { | 508 if (!(requestUrl.user().isEmpty() && requestUrl.pass().isEmpty())) { |
| 509 errorDescription = "The request was redirected to a URL ('" + requestUrl
.string() + "') containing userinfo, which is disallowed for cross-origin reques
ts."; | 509 errorDescription = "The request was redirected to a URL ('" + requestUrl
.string() + "') containing userinfo, which is disallowed for cross-origin reques
ts."; |
| 510 return false; | 510 return false; |
| 511 } | 511 } |
| 512 | 512 |
| 513 return true; | 513 return true; |
| 514 } | 514 } |
| 515 | 515 |
| 516 } // namespace WebCore | 516 } // namespace WebCore |
| OLD | NEW |