| 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 28 matching lines...) Expand all Loading... |
| 39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
| 40 | 40 |
| 41 namespace WebCore { class MainThreadWebSocketChannel; } | 41 namespace WebCore { class MainThreadWebSocketChannel; } |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 class WebDocument; | 45 class WebDocument; |
| 46 class WebString; | 46 class WebString; |
| 47 class WebURL; | 47 class WebURL; |
| 48 | 48 |
| 49 class WebSocketImpl : public WebSocket, public WebCore::WebSocketChannelClient { | 49 class WebSocketImpl FINAL : public WebSocket, public WebCore::WebSocketChannelCl
ient { |
| 50 public: | 50 public: |
| 51 WebSocketImpl(const WebDocument&, WebSocketClient*); | 51 WebSocketImpl(const WebDocument&, WebSocketClient*); |
| 52 virtual ~WebSocketImpl(); | 52 virtual ~WebSocketImpl(); |
| 53 | 53 |
| 54 bool isNull() const { return !m_private; } | 54 bool isNull() const { return !m_private; } |
| 55 | 55 |
| 56 virtual BinaryType binaryType() const OVERRIDE; | 56 virtual BinaryType binaryType() const OVERRIDE; |
| 57 virtual bool setBinaryType(BinaryType) OVERRIDE; | 57 virtual bool setBinaryType(BinaryType) OVERRIDE; |
| 58 virtual void connect(const WebURL&, const WebString& protocol) OVERRIDE; | 58 virtual void connect(const WebURL&, const WebString& protocol) OVERRIDE; |
| 59 virtual WebString subprotocol() OVERRIDE; | 59 virtual WebString subprotocol() OVERRIDE; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 RefPtr<WebCore::MainThreadWebSocketChannel> m_private; | 78 RefPtr<WebCore::MainThreadWebSocketChannel> m_private; |
| 79 WebSocketClient* m_client; | 79 WebSocketClient* m_client; |
| 80 BinaryType m_binaryType; | 80 BinaryType m_binaryType; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // WebWebSocketChannelImpl_h | 85 #endif // WebWebSocketChannelImpl_h |
| OLD | NEW |