OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual void fail(const String& reason, MessageLevel, const String&, unsigne
d lineNumber) OVERRIDE; | 84 virtual void fail(const String& reason, MessageLevel, const String&, unsigne
d lineNumber) OVERRIDE; |
85 virtual void disconnect() OVERRIDE; | 85 virtual void disconnect() OVERRIDE; |
86 | 86 |
87 virtual void suspend() OVERRIDE; | 87 virtual void suspend() OVERRIDE; |
88 virtual void resume() OVERRIDE; | 88 virtual void resume() OVERRIDE; |
89 | 89 |
90 // SocketStreamHandleClient functions. | 90 // SocketStreamHandleClient functions. |
91 virtual void didOpenSocketStream(SocketStreamHandle*) OVERRIDE; | 91 virtual void didOpenSocketStream(SocketStreamHandle*) OVERRIDE; |
92 virtual void didCloseSocketStream(SocketStreamHandle*) OVERRIDE; | 92 virtual void didCloseSocketStream(SocketStreamHandle*) OVERRIDE; |
93 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char*, in
t) OVERRIDE; | 93 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char*, in
t) OVERRIDE; |
94 virtual void didUpdateBufferedAmount(SocketStreamHandle*, size_t bufferedAmo
unt) OVERRIDE; | 94 virtual void didIncreaseBufferedAmount(SocketStreamHandle*, size_t amount) O
VERRIDE; |
| 95 virtual void didDecreaseBufferedAmount(SocketStreamHandle*, size_t amount) O
VERRIDE; |
95 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro
r&) OVERRIDE; | 96 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro
r&) OVERRIDE; |
96 | 97 |
97 // FileReaderLoaderClient functions. | 98 // FileReaderLoaderClient functions. |
98 virtual void didStartLoading() OVERRIDE; | 99 virtual void didStartLoading() OVERRIDE; |
99 virtual void didReceiveData() OVERRIDE; | 100 virtual void didReceiveData() OVERRIDE; |
100 virtual void didFinishLoading() OVERRIDE; | 101 virtual void didFinishLoading() OVERRIDE; |
101 virtual void didFail(FileError::ErrorCode) OVERRIDE; | 102 virtual void didFail(FileError::ErrorCode) OVERRIDE; |
102 | 103 |
103 private: | 104 private: |
104 MainThreadWebSocketChannel(Document*, WebSocketChannelClient*, const String&
, unsigned); | 105 MainThreadWebSocketChannel(Document*, WebSocketChannelClient*, const String&
, unsigned); |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 unsigned m_lineNumberAtConstruction; | 223 unsigned m_lineNumberAtConstruction; |
223 | 224 |
224 WebSocketPerMessageDeflate m_perMessageDeflate; | 225 WebSocketPerMessageDeflate m_perMessageDeflate; |
225 | 226 |
226 WebSocketDeflateFramer m_deflateFramer; | 227 WebSocketDeflateFramer m_deflateFramer; |
227 }; | 228 }; |
228 | 229 |
229 } // namespace WebCore | 230 } // namespace WebCore |
230 | 231 |
231 #endif // MainThreadWebSocketChannel_h | 232 #endif // MainThreadWebSocketChannel_h |
OLD | NEW |