Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: Source/web/WebSocketImpl.cpp

Issue 311993006: [WebSocket] bufferedAmount should not decrease inside a task. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698