| 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 14 matching lines...) Expand all Loading... |
| 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 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 SocketStreamHandle_h | 32 #ifndef SocketStreamHandle_h |
| 33 #define SocketStreamHandle_h | 33 #define SocketStreamHandle_h |
| 34 | 34 |
| 35 #include "KURL.h" | 35 #include "core/platform/KURL.h" |
| 36 #include <wtf/PassRefPtr.h> | 36 #include <wtf/PassRefPtr.h> |
| 37 #include <wtf/RefCounted.h> | 37 #include <wtf/RefCounted.h> |
| 38 #include <wtf/StreamBuffer.h> | 38 #include <wtf/StreamBuffer.h> |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 class SocketStreamHandleClient; | 42 class SocketStreamHandleClient; |
| 43 class SocketStreamHandleInternal; | 43 class SocketStreamHandleInternal; |
| 44 | 44 |
| 45 class SocketStreamHandle : public RefCounted<SocketStreamHandle> { | 45 class SocketStreamHandle : public RefCounted<SocketStreamHandle> { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 72 StreamBuffer<char, 1024 * 1024> m_buffer; | 72 StreamBuffer<char, 1024 * 1024> m_buffer; |
| 73 SocketStreamState m_state; | 73 SocketStreamState m_state; |
| 74 | 74 |
| 75 friend class SocketStreamHandleInternal; | 75 friend class SocketStreamHandleInternal; |
| 76 OwnPtr<SocketStreamHandleInternal> m_internal; | 76 OwnPtr<SocketStreamHandleInternal> m_internal; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace WebCore | 79 } // namespace WebCore |
| 80 | 80 |
| 81 #endif // SocketStreamHandle_h | 81 #endif // SocketStreamHandle_h |
| OLD | NEW |