OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 20 matching lines...) Expand all Loading... |
31 #ifndef WebSocketChannel_h | 31 #ifndef WebSocketChannel_h |
32 #define WebSocketChannel_h | 32 #define WebSocketChannel_h |
33 | 33 |
34 #include "core/frame/ConsoleTypes.h" | 34 #include "core/frame/ConsoleTypes.h" |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
38 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
39 #include "wtf/text/WTFString.h" | 39 #include "wtf/text/WTFString.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 | 42 |
43 class BlobDataHandle; | 43 class BlobDataHandle; |
44 class KURL; | 44 class KURL; |
45 class ExecutionContext; | 45 class ExecutionContext; |
46 class WebSocketChannelClient; | 46 class WebSocketChannelClient; |
47 | 47 |
48 // FIXME: WebSocketChannel needs to be RefCountedGarbageCollected to support man
ual ref/deref | 48 // FIXME: WebSocketChannel needs to be RefCountedGarbageCollected to support man
ual ref/deref |
49 // in MainThreadWebSocketChannelImpl. We should change it to GarbageCollectedFin
alized once | 49 // in MainThreadWebSocketChannelImpl. We should change it to GarbageCollectedFin
alized once |
50 // we remove MainThreadWebSocketChannelImpl. | 50 // we remove MainThreadWebSocketChannelImpl. |
51 class WebSocketChannel : public RefCountedWillBeRefCountedGarbageCollected<WebSo
cketChannel> { | 51 class WebSocketChannel : public RefCountedWillBeRefCountedGarbageCollected<WebSo
cketChannel> { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 virtual void disconnect() = 0; // Will suppress didClose(). | 107 virtual void disconnect() = 0; // Will suppress didClose(). |
108 | 108 |
109 virtual void suspend() = 0; | 109 virtual void suspend() = 0; |
110 virtual void resume() = 0; | 110 virtual void resume() = 0; |
111 | 111 |
112 virtual ~WebSocketChannel() { } | 112 virtual ~WebSocketChannel() { } |
113 | 113 |
114 virtual void trace(Visitor*) { } | 114 virtual void trace(Visitor*) { } |
115 }; | 115 }; |
116 | 116 |
117 } // namespace WebCore | 117 } // namespace blink |
118 | 118 |
119 #endif // WebSocketChannel_h | 119 #endif // WebSocketChannel_h |
OLD | NEW |