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