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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class WebSocketChannelClient : public GarbageCollectedMixin { | 41 class WebSocketChannelClient : public GarbageCollectedMixin { |
42 public: | 42 public: |
43 virtual ~WebSocketChannelClient() { } | 43 virtual ~WebSocketChannelClient() { } |
44 virtual void didConnect(const String& subprotocol, const String& extensions)
{ } | 44 virtual void didConnect(const String& subprotocol, const String& extensions)
{ } |
45 virtual void didReceiveTextMessage(const String&) { } | 45 virtual void didReceiveTextMessage(const String&) { } |
46 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char> >) { } | 46 virtual void didReceiveBinaryMessage(PassOwnPtr<Vector<char> >) { } |
47 virtual void didError() { } | 47 virtual void didError() { } |
48 virtual void didConsumeBufferedAmount(unsigned long consumed) { } | 48 virtual void didConsumeBufferedAmount(unsigned consumed) { } |
49 virtual void didStartClosingHandshake() { } | 49 virtual void didStartClosingHandshake() { } |
50 enum ClosingHandshakeCompletionStatus { | 50 enum ClosingHandshakeCompletionStatus { |
51 ClosingHandshakeIncomplete, | 51 ClosingHandshakeIncomplete, |
52 ClosingHandshakeComplete | 52 ClosingHandshakeComplete |
53 }; | 53 }; |
54 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co
de */, const String& /* reason */) { } | 54 virtual void didClose(ClosingHandshakeCompletionStatus, unsigned short /* co
de */, const String& /* reason */) { } |
55 virtual void trace(Visitor*) { } | 55 virtual void trace(Visitor*) { } |
56 | 56 |
57 protected: | 57 protected: |
58 WebSocketChannelClient() { } | 58 WebSocketChannelClient() { } |
59 }; | 59 }; |
60 | 60 |
61 } // namespace blink | 61 } // namespace blink |
62 | 62 |
63 #endif // WebSocketChannelClient_h | 63 #endif // WebSocketChannelClient_h |
OLD | NEW |