OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "wtf/text/CString.h" | 50 #include "wtf/text/CString.h" |
51 #include "wtf/text/WTFString.h" | 51 #include "wtf/text/WTFString.h" |
52 | 52 |
53 namespace blink { | 53 namespace blink { |
54 | 54 |
55 class WebSocketHandshakeRequestInfo; | 55 class WebSocketHandshakeRequestInfo; |
56 class WebSocketHandshakeResponseInfo; | 56 class WebSocketHandshakeResponseInfo; |
57 | 57 |
58 } // namespace blink | 58 } // namespace blink |
59 | 59 |
60 namespace WebCore { | 60 namespace blink { |
61 | 61 |
62 class Document; | 62 class Document; |
63 class WebSocketHandshakeRequest; | 63 class WebSocketHandshakeRequest; |
64 | 64 |
65 // This class may replace MainThreadWebSocketChannel. | 65 // This class may replace MainThreadWebSocketChannel. |
66 class NewWebSocketChannelImpl FINAL : public WebSocketChannel, public blink::Web
SocketHandleClient, public ContextLifecycleObserver { | 66 class NewWebSocketChannelImpl FINAL : public WebSocketChannel, public blink::Web
SocketHandleClient, public ContextLifecycleObserver { |
67 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 67 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
68 public: | 68 public: |
69 // You can specify the source file and the line number information | 69 // You can specify the source file and the line number information |
70 // explicitly by passing the last parameter. | 70 // explicitly by passing the last parameter. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 int64_t m_receivedDataSizeForFlowControl; | 188 int64_t m_receivedDataSizeForFlowControl; |
189 size_t m_sentSizeOfTopMessage; | 189 size_t m_sentSizeOfTopMessage; |
190 | 190 |
191 String m_sourceURLAtConstruction; | 191 String m_sourceURLAtConstruction; |
192 unsigned m_lineNumberAtConstruction; | 192 unsigned m_lineNumberAtConstruction; |
193 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest; | 193 RefPtr<WebSocketHandshakeRequest> m_handshakeRequest; |
194 | 194 |
195 static const int64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15; | 195 static const int64_t receivedDataSizeForFlowControlHighWaterMark = 1 << 15; |
196 }; | 196 }; |
197 | 197 |
198 } // namespace WebCore | 198 } // namespace blink |
199 | 199 |
200 #endif // NewWebSocketChannelImpl_h | 200 #endif // NewWebSocketChannelImpl_h |
OLD | NEW |