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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "modules/websockets/NewWebSocketChannelImpl.h" | 46 #include "modules/websockets/NewWebSocketChannelImpl.h" |
47 #include "modules/websockets/ThreadableWebSocketChannelClientWrapper.h" | 47 #include "modules/websockets/ThreadableWebSocketChannelClientWrapper.h" |
48 #include "platform/RuntimeEnabledFeatures.h" | 48 #include "platform/RuntimeEnabledFeatures.h" |
49 #include "public/platform/Platform.h" | 49 #include "public/platform/Platform.h" |
50 #include "public/platform/WebWaitableEvent.h" | 50 #include "public/platform/WebWaitableEvent.h" |
51 #include "wtf/ArrayBuffer.h" | 51 #include "wtf/ArrayBuffer.h" |
52 #include "wtf/Assertions.h" | 52 #include "wtf/Assertions.h" |
53 #include "wtf/Functional.h" | 53 #include "wtf/Functional.h" |
54 #include "wtf/MainThread.h" | 54 #include "wtf/MainThread.h" |
55 | 55 |
56 namespace WebCore { | 56 namespace blink { |
57 | 57 |
58 // Created and destroyed on the worker thread. All setters of this class are | 58 // Created and destroyed on the worker thread. All setters of this class are |
59 // called on the main thread, while all getters are called on the worker | 59 // called on the main thread, while all getters are called on the worker |
60 // thread. signalWorkerThread() must be called before any getters are called. | 60 // thread. signalWorkerThread() must be called before any getters are called. |
61 class ThreadableWebSocketChannelSyncHelper : public ThreadSafeRefCountedWillBeGa
rbageCollectedFinalized<ThreadableWebSocketChannelSyncHelper> { | 61 class ThreadableWebSocketChannelSyncHelper : public ThreadSafeRefCountedWillBeGa
rbageCollectedFinalized<ThreadableWebSocketChannelSyncHelper> { |
62 public: | 62 public: |
63 static PassRefPtrWillBeRawPtr<ThreadableWebSocketChannelSyncHelper> create(P
assOwnPtr<blink::WebWaitableEvent> event) | 63 static PassRefPtrWillBeRawPtr<ThreadableWebSocketChannelSyncHelper> create(P
assOwnPtr<blink::WebWaitableEvent> event) |
64 { | 64 { |
65 return adoptRefWillBeNoop(new ThreadableWebSocketChannelSyncHelper(event
)); | 65 return adoptRefWillBeNoop(new ThreadableWebSocketChannelSyncHelper(event
)); |
66 } | 66 } |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 } | 616 } |
617 | 617 |
618 void WorkerThreadableWebSocketChannel::Bridge::trace(Visitor* visitor) | 618 void WorkerThreadableWebSocketChannel::Bridge::trace(Visitor* visitor) |
619 { | 619 { |
620 visitor->trace(m_workerClientWrapper); | 620 visitor->trace(m_workerClientWrapper); |
621 visitor->trace(m_workerGlobalScope); | 621 visitor->trace(m_workerGlobalScope); |
622 visitor->trace(m_syncHelper); | 622 visitor->trace(m_syncHelper); |
623 visitor->trace(m_peer); | 623 visitor->trace(m_peer); |
624 } | 624 } |
625 | 625 |
626 } // namespace WebCore | 626 } // namespace blink |
OLD | NEW |