| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 30 matching lines...) Expand all Loading... |
| 41 #include "weborigin/KURL.h" | 41 #include "weborigin/KURL.h" |
| 42 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
| 43 #include "wtf/OwnPtr.h" | 43 #include "wtf/OwnPtr.h" |
| 44 #include "wtf/RefCounted.h" | 44 #include "wtf/RefCounted.h" |
| 45 #include "wtf/text/AtomicStringHash.h" | 45 #include "wtf/text/AtomicStringHash.h" |
| 46 | 46 |
| 47 namespace WebCore { | 47 namespace WebCore { |
| 48 | 48 |
| 49 class Blob; | 49 class Blob; |
| 50 | 50 |
| 51 class WebSocket : public RefCounted<WebSocket>, public ScriptWrappable, public E
ventTarget, public ActiveDOMObject, public WebSocketChannelClient { | 51 class WebSocket : public EventTarget, public RefCounted<WebSocket>, public Scrip
tWrappable, public ActiveDOMObject, public WebSocketChannelClient { |
| 52 public: | 52 public: |
| 53 static const char* subProtocolSeperator(); | 53 static const char* subProtocolSeperator(); |
| 54 static PassRefPtr<WebSocket> create(ScriptExecutionContext*); | 54 static PassRefPtr<WebSocket> create(ScriptExecutionContext*); |
| 55 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& u
rl, ExceptionCode&); | 55 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& u
rl, ExceptionCode&); |
| 56 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& u
rl, const String& protocol, ExceptionCode&); | 56 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& u
rl, const String& protocol, ExceptionCode&); |
| 57 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& u
rl, const Vector<String>& protocols, ExceptionCode&); | 57 static PassRefPtr<WebSocket> create(ScriptExecutionContext*, const String& u
rl, const Vector<String>& protocols, ExceptionCode&); |
| 58 virtual ~WebSocket(); | 58 virtual ~WebSocket(); |
| 59 | 59 |
| 60 enum State { | 60 enum State { |
| 61 CONNECTING = 0, | 61 CONNECTING = 0, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 unsigned long m_bufferedAmount; | 156 unsigned long m_bufferedAmount; |
| 157 unsigned long m_bufferedAmountAfterClose; | 157 unsigned long m_bufferedAmountAfterClose; |
| 158 BinaryType m_binaryType; | 158 BinaryType m_binaryType; |
| 159 String m_subprotocol; | 159 String m_subprotocol; |
| 160 String m_extensions; | 160 String m_extensions; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace WebCore | 163 } // namespace WebCore |
| 164 | 164 |
| 165 #endif // WebSocket_h | 165 #endif // WebSocket_h |
| OLD | NEW |