| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2009, 2011, 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 #ifndef SocketStreamHandleClient_h | 32 #ifndef SocketStreamHandleClient_h |
| 33 #define SocketStreamHandleClient_h | 33 #define SocketStreamHandleClient_h |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 class KURL; | |
| 38 class SocketStreamError; | 37 class SocketStreamError; |
| 39 class SocketStreamHandle; | 38 class SocketStreamHandle; |
| 40 | 39 |
| 41 class SocketStreamHandleClient : public GarbageCollectedMixin { | 40 class SocketStreamHandleClient : public GarbageCollectedMixin { |
| 42 public: | 41 public: |
| 43 virtual ~SocketStreamHandleClient() { } | 42 virtual ~SocketStreamHandleClient() { } |
| 44 | 43 |
| 45 virtual void didOpenSocketStream(SocketStreamHandle*) { } | 44 virtual void didOpenSocketStream(SocketStreamHandle*) { } |
| 46 virtual void didCloseSocketStream(SocketStreamHandle*) { } | 45 virtual void didCloseSocketStream(SocketStreamHandle*) { } |
| 47 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char* /*d
ata*/, int /*length*/) { } | 46 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char* /*d
ata*/, int /*length*/) { } |
| 48 virtual void didConsumeBufferedAmount(SocketStreamHandle*, size_t consumed)
{ } | 47 virtual void didConsumeBufferedAmount(SocketStreamHandle*, size_t consumed)
{ } |
| 49 | 48 |
| 50 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro
r&) { } | 49 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro
r&) { } |
| 51 | 50 |
| 52 virtual void trace(Visitor*) { } | 51 virtual void trace(Visitor*) { } |
| 53 }; | 52 }; |
| 54 | 53 |
| 55 } // namespace blink | 54 } // namespace blink |
| 56 | 55 |
| 57 #endif // SocketStreamHandleClient_h | 56 #endif // SocketStreamHandleClient_h |
| OLD | NEW |