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 24 matching lines...) Expand all Loading... |
35 #include "core/dom/ActiveDOMObject.h" | 35 #include "core/dom/ActiveDOMObject.h" |
36 #include "core/events/EventListener.h" | 36 #include "core/events/EventListener.h" |
37 #include "modules/EventTargetModules.h" | 37 #include "modules/EventTargetModules.h" |
38 #include "modules/websockets/WebSocketChannel.h" | 38 #include "modules/websockets/WebSocketChannel.h" |
39 #include "modules/websockets/WebSocketChannelClient.h" | 39 #include "modules/websockets/WebSocketChannelClient.h" |
40 #include "platform/Timer.h" | 40 #include "platform/Timer.h" |
41 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
42 #include "platform/weborigin/KURL.h" | 42 #include "platform/weborigin/KURL.h" |
43 #include "wtf/Deque.h" | 43 #include "wtf/Deque.h" |
44 #include "wtf/Forward.h" | 44 #include "wtf/Forward.h" |
45 #include "wtf/OwnPtr.h" | |
46 #include "wtf/RefCounted.h" | 45 #include "wtf/RefCounted.h" |
47 #include "wtf/text/AtomicStringHash.h" | 46 #include "wtf/text/AtomicStringHash.h" |
48 | 47 |
49 namespace WebCore { | 48 namespace WebCore { |
50 | 49 |
51 class Blob; | 50 class Blob; |
52 class ExceptionState; | 51 class ExceptionState; |
53 | 52 |
54 class WebSocket : public RefCountedWillBeRefCountedGarbageCollected<WebSocket>,
public ScriptWrappable, public EventTargetWithInlineData, public ActiveDOMObject
, public WebSocketChannelClient { | 53 class WebSocket : public RefCountedWillBeRefCountedGarbageCollected<WebSocket>,
public ScriptWrappable, public EventTargetWithInlineData, public ActiveDOMObject
, public WebSocketChannelClient { |
55 REFCOUNTED_EVENT_TARGET(WebSocket); | 54 REFCOUNTED_EVENT_TARGET(WebSocket); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 String m_subprotocol; | 230 String m_subprotocol; |
232 String m_extensions; | 231 String m_extensions; |
233 | 232 |
234 RefPtrWillBeMember<EventQueue> m_eventQueue; | 233 RefPtrWillBeMember<EventQueue> m_eventQueue; |
235 Timer<WebSocket> m_bufferedAmountConsumeTimer; | 234 Timer<WebSocket> m_bufferedAmountConsumeTimer; |
236 }; | 235 }; |
237 | 236 |
238 } // namespace WebCore | 237 } // namespace WebCore |
239 | 238 |
240 #endif // WebSocket_h | 239 #endif // WebSocket_h |
OLD | NEW |