| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 namespace blink { | 53 namespace blink { |
| 54 | 54 |
| 55 class Blob; | 55 class Blob; |
| 56 class DOMArrayBuffer; | 56 class DOMArrayBuffer; |
| 57 class DOMArrayBufferView; | 57 class DOMArrayBufferView; |
| 58 class ExceptionState; | 58 class ExceptionState; |
| 59 class ExecutionContext; | 59 class ExecutionContext; |
| 60 class StringOrStringSequence; | 60 class StringOrStringSequence; |
| 61 | 61 |
| 62 class MODULES_EXPORT DOMWebSocket : public RefCountedGarbageCollectedEventTarget
WithInlineData<DOMWebSocket>, public ActiveScriptWrappable, public ActiveDOMObje
ct, public WebSocketChannelClient { | 62 class MODULES_EXPORT DOMWebSocket : public EventTargetWithInlineData, public Act
iveScriptWrappable, public ActiveDOMObject, public WebSocketChannelClient { |
| 63 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(DOMWebSocket); | 63 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(DOMWebSocket); |
| 64 DEFINE_WRAPPERTYPEINFO(); | 64 DEFINE_WRAPPERTYPEINFO(); |
| 65 USING_GARBAGE_COLLECTED_MIXIN(DOMWebSocket); | 65 USING_GARBAGE_COLLECTED_MIXIN(DOMWebSocket); |
| 66 public: | 66 public: |
| 67 static const char* subprotocolSeperator(); | 67 static const char* subprotocolSeperator(); |
| 68 // DOMWebSocket instances must be used with a wrapper since this class's | 68 // DOMWebSocket instances must be used with a wrapper since this class's |
| 69 // lifetime management is designed assuming the V8 holds a ref on it while | 69 // lifetime management is designed assuming the V8 holds a ref on it while |
| 70 // hasPendingActivity() returns true. | 70 // hasPendingActivity() returns true. |
| 71 static DOMWebSocket* create(ExecutionContext*, const String& url, ExceptionS
tate&); | 71 static DOMWebSocket* create(ExecutionContext*, const String& url, ExceptionS
tate&); |
| 72 static DOMWebSocket* create(ExecutionContext*, const String& url, const Stri
ngOrStringSequence& protocols, ExceptionState&); | 72 static DOMWebSocket* create(ExecutionContext*, const String& url, const Stri
ngOrStringSequence& protocols, ExceptionState&); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 String m_subprotocol; | 242 String m_subprotocol; |
| 243 String m_extensions; | 243 String m_extensions; |
| 244 | 244 |
| 245 Member<EventQueue> m_eventQueue; | 245 Member<EventQueue> m_eventQueue; |
| 246 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; | 246 Timer<DOMWebSocket> m_bufferedAmountConsumeTimer; |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 } // namespace blink | 249 } // namespace blink |
| 250 | 250 |
| 251 #endif // DOMWebSocket_h | 251 #endif // DOMWebSocket_h |
| OLD | NEW |