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 15 matching lines...) Expand all Loading... |
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/WorkerLoaderClientBridgeSyncHelper.h" | 32 #include "core/loader/WorkerLoaderClientBridgeSyncHelper.h" |
33 | 33 |
34 #include "core/workers/WorkerGlobalScope.h" | 34 #include "core/workers/WorkerGlobalScope.h" |
35 #include "core/workers/WorkerLoaderProxy.h" | 35 #include "core/workers/WorkerLoaderProxy.h" |
| 36 #include "platform/network/ResourceError.h" |
| 37 #include "platform/network/ResourceResponse.h" |
36 #include "public/platform/WebWaitableEvent.h" | 38 #include "public/platform/WebWaitableEvent.h" |
37 #include "wtf/Functional.h" | 39 #include "wtf/Functional.h" |
38 #include "wtf/MainThread.h" | 40 #include "wtf/MainThread.h" |
39 #include "wtf/OwnPtr.h" | 41 #include "wtf/OwnPtr.h" |
40 | 42 |
41 namespace blink { | 43 namespace blink { |
42 | 44 |
43 PassOwnPtr<WorkerLoaderClientBridgeSyncHelper> WorkerLoaderClientBridgeSyncHelpe
r::create(ThreadableLoaderClient& client, PassOwnPtr<blink::WebWaitableEvent> ev
ent) | 45 PassOwnPtr<WorkerLoaderClientBridgeSyncHelper> WorkerLoaderClientBridgeSyncHelpe
r::create(ThreadableLoaderClient& client, PassOwnPtr<blink::WebWaitableEvent> ev
ent) |
44 { | 46 { |
45 return adoptPtr(new WorkerLoaderClientBridgeSyncHelper(client, event)); | 47 return adoptPtr(new WorkerLoaderClientBridgeSyncHelper(client, event)); |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 149 |
148 WorkerLoaderClientBridgeSyncHelper::WorkerLoaderClientBridgeSyncHelper(Threadabl
eLoaderClient& client, PassOwnPtr<blink::WebWaitableEvent> event) | 150 WorkerLoaderClientBridgeSyncHelper::WorkerLoaderClientBridgeSyncHelper(Threadabl
eLoaderClient& client, PassOwnPtr<blink::WebWaitableEvent> event) |
149 : m_done(false) | 151 : m_done(false) |
150 , m_client(client) | 152 , m_client(client) |
151 , m_event(event) | 153 , m_event(event) |
152 { | 154 { |
153 ASSERT(m_event); | 155 ASSERT(m_event); |
154 } | 156 } |
155 | 157 |
156 } // namespace blink | 158 } // namespace blink |
OLD | NEW |