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 16 matching lines...) Expand all Loading... | |
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 #ifndef WorkerLoaderClientBridgeSyncHelper_h | 31 #ifndef WorkerLoaderClientBridgeSyncHelper_h |
32 #define WorkerLoaderClientBridgeSyncHelper_h | 32 #define WorkerLoaderClientBridgeSyncHelper_h |
33 | 33 |
34 #include "core/loader/ThreadableLoaderClient.h" | 34 #include "core/loader/ThreadableLoaderClient.h" |
35 #include "wtf/Forward.h" | 35 #include "wtf/Forward.h" |
36 #include "wtf/Functional.h" | 36 #include "wtf/Functional.h" |
37 #include "wtf/OwnPtrList.h" | |
37 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 class WebWaitableEvent; | 41 class WebWaitableEvent; |
41 } | 42 } |
42 | 43 |
43 namespace blink { | 44 namespace blink { |
44 | 45 |
45 // This bridge is created and destroyed on the worker thread, but is | 46 // This bridge is created and destroyed on the worker thread, but is |
46 // passed to and used on the main thread. Each did* method records the given | 47 // passed to and used on the main thread. Each did* method records the given |
(...skipping 17 matching lines...) Expand all Loading... | |
64 virtual void didFailAccessControlCheck(const ResourceError&) override; | 65 virtual void didFailAccessControlCheck(const ResourceError&) override; |
65 virtual void didFailRedirectCheck() override; | 66 virtual void didFailRedirectCheck() override; |
66 | 67 |
67 private: | 68 private: |
68 WorkerLoaderClientBridgeSyncHelper(ThreadableLoaderClient&, PassOwnPtr<blink ::WebWaitableEvent>); | 69 WorkerLoaderClientBridgeSyncHelper(ThreadableLoaderClient&, PassOwnPtr<blink ::WebWaitableEvent>); |
69 | 70 |
70 bool m_done; | 71 bool m_done; |
71 ThreadableLoaderClient& m_client; | 72 ThreadableLoaderClient& m_client; |
72 OwnPtr<blink::WebWaitableEvent> m_event; | 73 OwnPtr<blink::WebWaitableEvent> m_event; |
73 Vector<Vector<char>*> m_receivedData; | 74 Vector<Vector<char>*> m_receivedData; |
74 Vector<Closure> m_clientTasks; | 75 OwnPtrList<Closure> m_clientTasks; |
yhirano
2014/11/07 06:05:27
Can't we use Vector<OwnPtr<Closure>>?
hiroshige
2014/11/07 07:16:59
Done.
| |
75 }; | 76 }; |
76 | 77 |
77 } // namespace blink | 78 } // namespace blink |
78 | 79 |
79 #endif // WorkerLoaderClientBridgeSyncHelper_h | 80 #endif // WorkerLoaderClientBridgeSyncHelper_h |
OLD | NEW |