OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 24 matching lines...) Expand all Loading... |
35 #include "public/platform/WebSocketStreamHandleClient.h" | 35 #include "public/platform/WebSocketStreamHandleClient.h" |
36 #include "public/platform/WebURL.h" | 36 #include "public/platform/WebURL.h" |
37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 class WebData; | 40 class WebData; |
41 class WebSocketStreamError; | 41 class WebSocketStreamError; |
42 class WebSocketStreamHandle; | 42 class WebSocketStreamHandle; |
43 } | 43 } |
44 | 44 |
45 namespace WebCore { | 45 namespace blink { |
46 | 46 |
47 class PLATFORM_EXPORT SocketStreamHandleInternal : public NoBaseWillBeGarbageCol
lectedFinalized<SocketStreamHandleInternal>, public blink::WebSocketStreamHandle
Client { | 47 class PLATFORM_EXPORT SocketStreamHandleInternal : public NoBaseWillBeGarbageCol
lectedFinalized<SocketStreamHandleInternal>, public blink::WebSocketStreamHandle
Client { |
48 WTF_MAKE_NONCOPYABLE(SocketStreamHandleInternal); | 48 WTF_MAKE_NONCOPYABLE(SocketStreamHandleInternal); |
49 public: | 49 public: |
50 static PassOwnPtrWillBeRawPtr<SocketStreamHandleInternal> create(SocketStrea
mHandle* handle) | 50 static PassOwnPtrWillBeRawPtr<SocketStreamHandleInternal> create(SocketStrea
mHandle* handle) |
51 { | 51 { |
52 return adoptPtrWillBeNoop(new SocketStreamHandleInternal(handle)); | 52 return adoptPtrWillBeNoop(new SocketStreamHandleInternal(handle)); |
53 } | 53 } |
54 virtual ~SocketStreamHandleInternal(); | 54 virtual ~SocketStreamHandleInternal(); |
55 | 55 |
(...skipping 18 matching lines...) Expand all Loading... |
74 | 74 |
75 private: | 75 private: |
76 explicit SocketStreamHandleInternal(SocketStreamHandle*); | 76 explicit SocketStreamHandleInternal(SocketStreamHandle*); |
77 | 77 |
78 RawPtrWillBeMember<SocketStreamHandle> m_handle; | 78 RawPtrWillBeMember<SocketStreamHandle> m_handle; |
79 OwnPtr<blink::WebSocketStreamHandle> m_socket; | 79 OwnPtr<blink::WebSocketStreamHandle> m_socket; |
80 int m_maxPendingSendAllowed; | 80 int m_maxPendingSendAllowed; |
81 int m_pendingAmountSent; | 81 int m_pendingAmountSent; |
82 }; | 82 }; |
83 | 83 |
84 } // namespace WebCore | 84 } // namespace blink |
85 | 85 |
86 #endif // SocketStreamHandleInternal_h | 86 #endif // SocketStreamHandleInternal_h |
OLD | NEW |