| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 17 matching lines...) Expand all Loading... |
| 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/WorkerLoaderClientBridge.h" | 32 #include "core/loader/WorkerLoaderClientBridge.h" |
| 33 | 33 |
| 34 #include "core/dom/CrossThreadTask.h" | 34 #include "core/dom/CrossThreadTask.h" |
| 35 #include "core/loader/ThreadableLoaderClientWrapper.h" | 35 #include "core/loader/ThreadableLoaderClientWrapper.h" |
| 36 #include "core/workers/WorkerGlobalScope.h" | 36 #include "core/workers/WorkerGlobalScope.h" |
| 37 #include "core/workers/WorkerLoaderProxy.h" | 37 #include "core/workers/WorkerLoaderProxy.h" |
| 38 #include "platform/network/ResourceError.h" |
| 39 #include "platform/network/ResourceResponse.h" |
| 38 #include "wtf/PassOwnPtr.h" | 40 #include "wtf/PassOwnPtr.h" |
| 39 #include "wtf/PassRefPtr.h" | 41 #include "wtf/PassRefPtr.h" |
| 40 #include <limits> | 42 #include <limits> |
| 41 | 43 |
| 42 namespace blink { | 44 namespace blink { |
| 43 | 45 |
| 44 PassOwnPtr<ThreadableLoaderClient> WorkerLoaderClientBridge::create(PassRefPtr<T
hreadableLoaderClientWrapper> client, WorkerLoaderProxy& loaderProxy) | 46 PassOwnPtr<ThreadableLoaderClient> WorkerLoaderClientBridge::create(PassRefPtr<T
hreadableLoaderClientWrapper> client, WorkerLoaderProxy& loaderProxy) |
| 45 { | 47 { |
| 46 return adoptPtr(new WorkerLoaderClientBridge(client, loaderProxy)); | 48 return adoptPtr(new WorkerLoaderClientBridge(client, loaderProxy)); |
| 47 } | 49 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 m_loaderProxy.postTaskToWorkerGlobalScope(createCrossThreadTask(&workerGloba
lScopeDidFailRedirectCheck, m_workerClientWrapper)); | 157 m_loaderProxy.postTaskToWorkerGlobalScope(createCrossThreadTask(&workerGloba
lScopeDidFailRedirectCheck, m_workerClientWrapper)); |
| 156 } | 158 } |
| 157 | 159 |
| 158 WorkerLoaderClientBridge::WorkerLoaderClientBridge(PassRefPtr<ThreadableLoaderCl
ientWrapper> clientWrapper, WorkerLoaderProxy& loaderProxy) | 160 WorkerLoaderClientBridge::WorkerLoaderClientBridge(PassRefPtr<ThreadableLoaderCl
ientWrapper> clientWrapper, WorkerLoaderProxy& loaderProxy) |
| 159 : m_workerClientWrapper(clientWrapper) | 161 : m_workerClientWrapper(clientWrapper) |
| 160 , m_loaderProxy(loaderProxy) | 162 , m_loaderProxy(loaderProxy) |
| 161 { | 163 { |
| 162 } | 164 } |
| 163 | 165 |
| 164 } // namespace blink | 166 } // namespace blink |
| OLD | NEW |