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 21 matching lines...) Expand all Loading... |
32 #ifndef SocketStreamHandle_h | 32 #ifndef SocketStreamHandle_h |
33 #define SocketStreamHandle_h | 33 #define SocketStreamHandle_h |
34 | 34 |
35 #include "platform/PlatformExport.h" | 35 #include "platform/PlatformExport.h" |
36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
37 #include "platform/weborigin/KURL.h" | 37 #include "platform/weborigin/KURL.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
40 #include "wtf/StreamBuffer.h" | 40 #include "wtf/StreamBuffer.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 class SocketStreamHandleClient; | 44 class SocketStreamHandleClient; |
45 class SocketStreamHandleInternal; | 45 class SocketStreamHandleInternal; |
46 | 46 |
47 class PLATFORM_EXPORT SocketStreamHandle : public RefCountedWillBeGarbageCollect
edFinalized<SocketStreamHandle> { | 47 class PLATFORM_EXPORT SocketStreamHandle : public RefCountedWillBeGarbageCollect
edFinalized<SocketStreamHandle> { |
48 public: | 48 public: |
49 enum SocketStreamState { Connecting, Open, Closing, Closed }; | 49 enum SocketStreamState { Connecting, Open, Closing, Closed }; |
50 | 50 |
51 static PassRefPtrWillBeRawPtr<SocketStreamHandle> create(SocketStreamHandleC
lient* client) | 51 static PassRefPtrWillBeRawPtr<SocketStreamHandle> create(SocketStreamHandleC
lient* client) |
52 { | 52 { |
(...skipping 22 matching lines...) Expand all Loading... |
75 void closeInternal(); | 75 void closeInternal(); |
76 | 76 |
77 RawPtrWillBeMember<SocketStreamHandleClient> m_client; | 77 RawPtrWillBeMember<SocketStreamHandleClient> m_client; |
78 StreamBuffer<char, 1024 * 1024> m_buffer; | 78 StreamBuffer<char, 1024 * 1024> m_buffer; |
79 SocketStreamState m_state; | 79 SocketStreamState m_state; |
80 | 80 |
81 friend class SocketStreamHandleInternal; | 81 friend class SocketStreamHandleInternal; |
82 OwnPtrWillBeMember<SocketStreamHandleInternal> m_internal; | 82 OwnPtrWillBeMember<SocketStreamHandleInternal> m_internal; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace WebCore | 85 } // namespace blink |
86 | 86 |
87 #endif // SocketStreamHandle_h | 87 #endif // SocketStreamHandle_h |
OLD | NEW |