| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 m_client->didReceiveArrayBuffer(WebArrayBuffer(ArrayBuffer::create(binar
yData->data(), binaryData->size()))); | 144 m_client->didReceiveArrayBuffer(WebArrayBuffer(ArrayBuffer::create(binar
yData->data(), binaryData->size()))); |
| 145 break; | 145 break; |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 | 148 |
| 149 void WebSocketImpl::didReceiveMessageError() | 149 void WebSocketImpl::didReceiveMessageError() |
| 150 { | 150 { |
| 151 m_client->didReceiveMessageError(); | 151 m_client->didReceiveMessageError(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void WebSocketImpl::didUpdateBufferedAmount(unsigned long bufferedAmount) | 154 void WebSocketImpl::didIncreaseBufferedAmount(unsigned long amount) |
| 155 { | 155 { |
| 156 m_client->didUpdateBufferedAmount(bufferedAmount); | 156 m_client->didIncreaseBufferedAmount(amount); |
| 157 } |
| 158 |
| 159 void WebSocketImpl::didDecreaseBufferedAmount(unsigned long amount) |
| 160 { |
| 161 m_client->didDecreaseBufferedAmount(amount); |
| 157 } | 162 } |
| 158 | 163 |
| 159 void WebSocketImpl::didStartClosingHandshake() | 164 void WebSocketImpl::didStartClosingHandshake() |
| 160 { | 165 { |
| 161 m_client->didStartClosingHandshake(); | 166 m_client->didStartClosingHandshake(); |
| 162 } | 167 } |
| 163 | 168 |
| 164 void WebSocketImpl::didClose(unsigned long bufferedAmount, ClosingHandshakeCompl
etionStatus status, unsigned short code, const String& reason) | 169 void WebSocketImpl::didClose(unsigned long bufferedAmount, ClosingHandshakeCompl
etionStatus status, unsigned short code, const String& reason) |
| 165 { | 170 { |
| 166 m_client->didClose(bufferedAmount, static_cast<WebSocketClient::ClosingHands
hakeCompletionStatus>(status), code, WebString(reason)); | 171 m_client->didClose(bufferedAmount, static_cast<WebSocketClient::ClosingHands
hakeCompletionStatus>(status), code, WebString(reason)); |
| 167 } | 172 } |
| 168 | 173 |
| 169 } // namespace blink | 174 } // namespace blink |
| OLD | NEW |