| 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 27 matching lines...) Expand all Loading... |
| 38 class SocketStreamError; | 38 class SocketStreamError; |
| 39 class SocketStreamHandle; | 39 class SocketStreamHandle; |
| 40 | 40 |
| 41 class SocketStreamHandleClient { | 41 class SocketStreamHandleClient { |
| 42 public: | 42 public: |
| 43 virtual ~SocketStreamHandleClient() { } | 43 virtual ~SocketStreamHandleClient() { } |
| 44 | 44 |
| 45 virtual void didOpenSocketStream(SocketStreamHandle*) { } | 45 virtual void didOpenSocketStream(SocketStreamHandle*) { } |
| 46 virtual void didCloseSocketStream(SocketStreamHandle*) { } | 46 virtual void didCloseSocketStream(SocketStreamHandle*) { } |
| 47 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char* /*d
ata*/, int /*length*/) { } | 47 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char* /*d
ata*/, int /*length*/) { } |
| 48 virtual void didUpdateBufferedAmount(SocketStreamHandle*, size_t /*bufferedA
mount*/) { } | 48 virtual void didIncreaseBufferedAmount(SocketStreamHandle*, size_t amount) {
} |
| 49 virtual void didDecreaseBufferedAmount(SocketStreamHandle*, size_t amount) {
} |
| 49 | 50 |
| 50 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro
r&) { } | 51 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro
r&) { } |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 } // namespace WebCore | 54 } // namespace WebCore |
| 54 | 55 |
| 55 #endif // SocketStreamHandleClient_h | 56 #endif // SocketStreamHandleClient_h |
| OLD | NEW |