OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebSocketChannelClientProxy_h | 5 #ifndef WebSocketChannelClientProxy_h |
6 #define WebSocketChannelClientProxy_h | 6 #define WebSocketChannelClientProxy_h |
7 | 7 |
8 #include "modules/websockets/WebSocketChannelClient.h" | 8 #include "modules/websockets/WebSocketChannelClient.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "web/WebSocketImpl.h" | 10 #include "web/WebSocketImpl.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 { | 52 { |
53 m_impl->didStartClosingHandshake(); | 53 m_impl->didStartClosingHandshake(); |
54 } | 54 } |
55 virtual void didClose(ClosingHandshakeCompletionStatus status, unsigned shor
t code, const String& reason) override | 55 virtual void didClose(ClosingHandshakeCompletionStatus status, unsigned shor
t code, const String& reason) override |
56 { | 56 { |
57 WebSocketImpl* impl = m_impl; | 57 WebSocketImpl* impl = m_impl; |
58 m_impl = nullptr; | 58 m_impl = nullptr; |
59 impl->didClose(status, code, reason); | 59 impl->didClose(status, code, reason); |
60 } | 60 } |
61 | 61 |
| 62 virtual void trace(Visitor* visitor) override |
| 63 { |
| 64 WebSocketChannelClient::trace(visitor); |
| 65 } |
| 66 |
62 private: | 67 private: |
63 explicit WebSocketChannelClientProxy(WebSocketImpl* impl) | 68 explicit WebSocketChannelClientProxy(WebSocketImpl* impl) |
64 : m_impl(impl) | 69 : m_impl(impl) |
65 { | 70 { |
66 } | 71 } |
67 | 72 |
68 WebSocketImpl* m_impl; | 73 WebSocketImpl* m_impl; |
69 }; | 74 }; |
70 | 75 |
71 } // namespace blink | 76 } // namespace blink |
72 | 77 |
73 #endif // WebSocketChannelClientProxy_h | 78 #endif // WebSocketChannelClientProxy_h |
OLD | NEW |