Changeset 147542 in webkit
- Timestamp:
- Apr 3, 2013 5:15:54 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147541 r147542 1 2013-04-03 Takeshi Yoshino <tyoshino@chromium.org> 2 3 Refine LOG messages in WebSocket related components 4 https://bugs.webkit.org/show_bug.cgi?id=113852 5 6 Reviewed by Kent Tamura. 7 8 Refine LOG messages by 9 - Make them contain method names to ease identifying where the event occurred. 10 - For consistency, make all messages print the pointer of the origin instance. 11 - Quote UTF8 data in LOG messages. 12 - For overloaded methods, add the type to clarify which one is run 13 14 * Modules/websockets/WebSocket.cpp: 15 (WebCore::WebSocket::connect): 16 (WebCore::WebSocket::send): 17 (WebCore::WebSocket::close): 18 (WebCore::WebSocket::contextDestroyed): 19 (WebCore::WebSocket::didConnect): 20 (WebCore::WebSocket::didReceiveMessage): 21 (WebCore::WebSocket::didReceiveBinaryData): 22 (WebCore::WebSocket::didReceiveMessageError): 23 (WebCore::WebSocket::didUpdateBufferedAmount): 24 (WebCore::WebSocket::didStartClosingHandshake): 25 (WebCore::WebSocket::didClose): 26 * Modules/websockets/WebSocketChannel.cpp: 27 (WebCore::WebSocketChannel::connect): 28 (WebCore::WebSocketChannel::subprotocol): 29 (WebCore::WebSocketChannel::extensions): 30 (WebCore::WebSocketChannel::send): 31 (WebCore::WebSocketChannel::bufferedAmount): 32 (WebCore::WebSocketChannel::close): 33 (WebCore::WebSocketChannel::fail): 34 (WebCore::WebSocketChannel::disconnect): 35 (WebCore::WebSocketChannel::willOpenSocketStream): 36 (WebCore::WebSocketChannel::didOpenSocketStream): 37 (WebCore::WebSocketChannel::didCloseSocketStream): 38 (WebCore::WebSocketChannel::didReceiveSocketStreamData): 39 (WebCore::WebSocketChannel::didFailSocketStream): 40 (WebCore::WebSocketChannel::didStartLoading): 41 (WebCore::WebSocketChannel::didReceiveData): 42 (WebCore::WebSocketChannel::didFinishLoading): 43 (WebCore::WebSocketChannel::didFail): 44 (WebCore::WebSocketChannel::appendToBuffer): 45 (WebCore::WebSocketChannel::processBuffer): 46 (WebCore::WebSocketChannel::startClosingHandshake): 47 (WebCore::WebSocketChannel::closingTimerFired): 48 * Modules/websockets/WebSocketDeflater.cpp: 49 (WebCore::WebSocketDeflater::~WebSocketDeflater): 50 (WebCore::WebSocketInflater::~WebSocketInflater): 51 * Modules/websockets/WebSocketHandshake.cpp: 52 (WebCore::WebSocketHandshake::readServerHandshake): 53 * platform/network/chromium/SocketStreamHandle.cpp: 54 (WebCore::SocketStreamHandleInternal::connect): 55 (WebCore::SocketStreamHandleInternal::send): 56 (WebCore::SocketStreamHandleInternal::close): 57 (WebCore::SocketStreamHandleInternal::didOpenStream): 58 (WebCore::SocketStreamHandleInternal::didSendData): 59 (WebCore::SocketStreamHandleInternal::didReceiveData): 60 (WebCore::SocketStreamHandleInternal::didClose): 61 (WebCore::SocketStreamHandleInternal::didFail): 62 1 63 2013-04-03 Tor Arne Vestbø <tor.arne.vestbo@digia.com> 2 64 -
trunk/Source/WebCore/Modules/websockets/WebSocket.cpp
r146537 r147542 212 212 void WebSocket::connect(const String& url, const Vector<String>& protocols, ExceptionCode& ec) 213 213 { 214 LOG(Network, "WebSocket %p connect to %s", this, url.utf8().data());214 LOG(Network, "WebSocket %p connect() url='%s'", this, url.utf8().data()); 215 215 m_url = KURL(KURL(), url); 216 216 … … 293 293 bool WebSocket::send(const String& message, ExceptionCode& ec) 294 294 { 295 LOG(Network, "WebSocket %p send %s", this, message.utf8().data());295 LOG(Network, "WebSocket %p send() Sending String '%s'", this, message.utf8().data()); 296 296 if (m_state == CONNECTING) { 297 297 ec = INVALID_STATE_ERR; … … 317 317 bool WebSocket::send(ArrayBuffer* binaryData, ExceptionCode& ec) 318 318 { 319 LOG(Network, "WebSocket %p send arraybuffer %p", this, binaryData);319 LOG(Network, "WebSocket %p send() Sending ArrayBuffer %p", this, binaryData); 320 320 ASSERT(binaryData); 321 321 if (m_state == CONNECTING) { … … 335 335 bool WebSocket::send(ArrayBufferView* arrayBufferView, ExceptionCode& ec) 336 336 { 337 LOG(Network, "WebSocket %p send arraybufferview %p", this, arrayBufferView);337 LOG(Network, "WebSocket %p send() Sending ArrayBufferView %p", this, arrayBufferView); 338 338 ASSERT(arrayBufferView); 339 339 if (m_state == CONNECTING) { … … 354 354 bool WebSocket::send(Blob* binaryData, ExceptionCode& ec) 355 355 { 356 LOG(Network, "WebSocket %p send blob %s", this, binaryData->url().elidedString().utf8().data());356 LOG(Network, "WebSocket %p send() Sending Blob '%s'", this, binaryData->url().elidedString().utf8().data()); 357 357 ASSERT(binaryData); 358 358 if (m_state == CONNECTING) { … … 373 373 { 374 374 if (code == WebSocketChannel::CloseEventCodeNotSpecified) 375 LOG(Network, "WebSocket %p close without code and reason", this);375 LOG(Network, "WebSocket %p close() without code and reason", this); 376 376 else { 377 LOG(Network, "WebSocket %p close with code = %d, reason = %s", this, code, reason.utf8().data());377 LOG(Network, "WebSocket %p close() code=%d reason='%s'", this, code, reason.utf8().data()); 378 378 if (!(code == WebSocketChannel::CloseEventCodeNormalClosure || (WebSocketChannel::CloseEventCodeMinimumUserDefined <= code && code <= WebSocketChannel::CloseEventCodeMaximumUserDefined))) { 379 379 ec = INVALID_ACCESS_ERR; … … 462 462 void WebSocket::contextDestroyed() 463 463 { 464 LOG(Network, "WebSocket %p scriptExecutionContext destroyed", this);464 LOG(Network, "WebSocket %p contextDestroyed()", this); 465 465 ASSERT(!m_channel); 466 466 ASSERT(m_state == CLOSED); … … 499 499 void WebSocket::didConnect() 500 500 { 501 LOG(Network, "WebSocket %p didConnect ", this);501 LOG(Network, "WebSocket %p didConnect()", this); 502 502 if (m_state != CONNECTING) { 503 503 didClose(0, ClosingHandshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, ""); … … 513 513 void WebSocket::didReceiveMessage(const String& msg) 514 514 { 515 LOG(Network, "WebSocket %p didReceiveMessage %s", this, msg.utf8().data());515 LOG(Network, "WebSocket %p didReceiveMessage() Text message '%s'", this, msg.utf8().data()); 516 516 if (m_state != OPEN && m_state != CLOSING) 517 517 return; … … 522 522 void WebSocket::didReceiveBinaryData(PassOwnPtr<Vector<char> > binaryData) 523 523 { 524 LOG(Network, "WebSocket %p didReceiveBinaryData() %lu byte binary message", this, binaryData->size()); 524 525 switch (m_binaryType) { 525 526 case BinaryTypeBlob: { … … 542 543 void WebSocket::didReceiveMessageError() 543 544 { 544 LOG(Network, "WebSocket %p didReceiveErrorMessage ", this);545 LOG(Network, "WebSocket %p didReceiveErrorMessage()", this); 545 546 ASSERT(scriptExecutionContext()); 546 547 dispatchEvent(Event::create(eventNames().errorEvent, false, false)); … … 549 550 void WebSocket::didUpdateBufferedAmount(unsigned long bufferedAmount) 550 551 { 551 LOG(Network, "WebSocket %p didUpdateBufferedAmount %lu", this, bufferedAmount);552 LOG(Network, "WebSocket %p didUpdateBufferedAmount() New bufferedAmount is %lu", this, bufferedAmount); 552 553 if (m_state == CLOSED) 553 554 return; … … 557 558 void WebSocket::didStartClosingHandshake() 558 559 { 559 LOG(Network, "WebSocket %p didStartClosingHandshake ", this);560 LOG(Network, "WebSocket %p didStartClosingHandshake()", this); 560 561 m_state = CLOSING; 561 562 } … … 563 564 void WebSocket::didClose(unsigned long unhandledBufferedAmount, ClosingHandshakeCompletionStatus closingHandshakeCompletion, unsigned short code, const String& reason) 564 565 { 565 LOG(Network, "WebSocket %p didClose ", this);566 LOG(Network, "WebSocket %p didClose()", this); 566 567 if (!m_channel) 567 568 return; -
trunk/Source/WebCore/Modules/websockets/WebSocketChannel.cpp
r144949 r147542 101 101 void WebSocketChannel::connect(const KURL& url, const String& protocol) 102 102 { 103 LOG(Network, "WebSocketChannel %p connect ", this);103 LOG(Network, "WebSocketChannel %p connect()", this); 104 104 ASSERT(!m_handle); 105 105 ASSERT(!m_suspended); … … 116 116 String WebSocketChannel::subprotocol() 117 117 { 118 LOG(Network, "WebSocketChannel %p subprotocol ", this);118 LOG(Network, "WebSocketChannel %p subprotocol()", this); 119 119 if (!m_handshake || m_handshake->mode() != WebSocketHandshake::Connected) 120 120 return ""; … … 127 127 String WebSocketChannel::extensions() 128 128 { 129 LOG(Network, "WebSocketChannel %p extensions ", this);129 LOG(Network, "WebSocketChannel %p extensions()", this); 130 130 if (!m_handshake || m_handshake->mode() != WebSocketHandshake::Connected) 131 131 return ""; … … 138 138 ThreadableWebSocketChannel::SendResult WebSocketChannel::send(const String& message) 139 139 { 140 LOG(Network, "WebSocketChannel %p send %s", this, message.utf8().data());140 LOG(Network, "WebSocketChannel %p send() Sending String '%s'", this, message.utf8().data()); 141 141 CString utf8 = message.utf8(String::StrictConversionReplacingUnpairedSurrogatesWithFFFD); 142 142 enqueueTextFrame(utf8); … … 152 152 ThreadableWebSocketChannel::SendResult WebSocketChannel::send(const ArrayBuffer& binaryData, unsigned byteOffset, unsigned byteLength) 153 153 { 154 LOG(Network, "WebSocketChannel %p send arraybuffer %p %u%u", this, &binaryData, byteOffset, byteLength);154 LOG(Network, "WebSocketChannel %p send() Sending ArrayBuffer %p byteOffset=%u byteLength=%u", this, &binaryData, byteOffset, byteLength); 155 155 enqueueRawFrame(WebSocketFrame::OpCodeBinary, static_cast<const char*>(binaryData.data()) + byteOffset, byteLength); 156 156 return ThreadableWebSocketChannel::SendSuccess; … … 159 159 ThreadableWebSocketChannel::SendResult WebSocketChannel::send(const Blob& binaryData) 160 160 { 161 LOG(Network, "WebSocketChannel %p send blob %s", this, binaryData.url().elidedString().utf8().data());161 LOG(Network, "WebSocketChannel %p send() Sending Blob '%s'", this, binaryData.url().elidedString().utf8().data()); 162 162 enqueueBlobFrame(WebSocketFrame::OpCodeBinary, binaryData); 163 163 return ThreadableWebSocketChannel::SendSuccess; … … 166 166 bool WebSocketChannel::send(const char* data, int length) 167 167 { 168 LOG(Network, "WebSocketChannel %p send binary %p (%dB)", this, data, length);168 LOG(Network, "WebSocketChannel %p send() Sending char* data=%p length=%d", this, data, length); 169 169 enqueueRawFrame(WebSocketFrame::OpCodeBinary, data, length); 170 170 return true; … … 173 173 unsigned long WebSocketChannel::bufferedAmount() const 174 174 { 175 LOG(Network, "WebSocketChannel %p bufferedAmount ", this);175 LOG(Network, "WebSocketChannel %p bufferedAmount()", this); 176 176 ASSERT(m_handle); 177 177 ASSERT(!m_suspended); … … 181 181 void WebSocketChannel::close(int code, const String& reason) 182 182 { 183 LOG(Network, "WebSocketChannel %p close ", this);183 LOG(Network, "WebSocketChannel %p close() code=%d reason='%s'", this, code, reason.utf8().data()); 184 184 ASSERT(!m_suspended); 185 185 if (!m_handle) … … 192 192 void WebSocketChannel::fail(const String& reason) 193 193 { 194 LOG(Network, "WebSocketChannel %p fail : %s", this, reason.utf8().data());194 LOG(Network, "WebSocketChannel %p fail() reason='%s'", this, reason.utf8().data()); 195 195 ASSERT(!m_suspended); 196 196 if (m_document) { … … 216 216 void WebSocketChannel::disconnect() 217 217 { 218 LOG(Network, "WebSocketChannel %p disconnect ", this);218 LOG(Network, "WebSocketChannel %p disconnect()", this); 219 219 if (m_identifier && m_document) 220 220 InspectorInstrumentation::didCloseWebSocket(m_document, m_identifier); … … 241 241 void WebSocketChannel::willOpenSocketStream(SocketStreamHandle* handle) 242 242 { 243 LOG(Network, "WebSocketChannel %p willOpen socketStream", this);243 LOG(Network, "WebSocketChannel %p willOpenSocketStream()", this); 244 244 ASSERT(handle); 245 245 if (m_document->frame()) … … 249 249 void WebSocketChannel::didOpenSocketStream(SocketStreamHandle* handle) 250 250 { 251 LOG(Network, "WebSocketChannel %p didOpenSocketStream ", this);251 LOG(Network, "WebSocketChannel %p didOpenSocketStream()", this); 252 252 ASSERT(handle == m_handle); 253 253 if (!m_document) … … 262 262 void WebSocketChannel::didCloseSocketStream(SocketStreamHandle* handle) 263 263 { 264 LOG(Network, "WebSocketChannel %p didCloseSocketStream ", this);264 LOG(Network, "WebSocketChannel %p didCloseSocketStream()", this); 265 265 if (m_identifier && m_document) 266 266 InspectorInstrumentation::didCloseWebSocket(m_document, m_identifier); … … 287 287 void WebSocketChannel::didReceiveSocketStreamData(SocketStreamHandle* handle, const char* data, int len) 288 288 { 289 LOG(Network, "WebSocketChannel %p didReceiveSocketStreamData %d", this, len);289 LOG(Network, "WebSocketChannel %p didReceiveSocketStreamData() Received %d bytes", this, len); 290 290 RefPtr<WebSocketChannel> protect(this); // The client can close the channel, potentially removing the last reference. 291 291 ASSERT(handle == m_handle); … … 322 322 void WebSocketChannel::didFailSocketStream(SocketStreamHandle* handle, const SocketStreamError& error) 323 323 { 324 LOG(Network, "WebSocketChannel %p didFailSocketStream ", this);324 LOG(Network, "WebSocketChannel %p didFailSocketStream()", this); 325 325 ASSERT(handle == m_handle || !m_handle); 326 326 if (m_document) { … … 350 350 void WebSocketChannel::didStartLoading() 351 351 { 352 LOG(Network, "WebSocketChannel %p didStartLoading ", this);352 LOG(Network, "WebSocketChannel %p didStartLoading()", this); 353 353 ASSERT(m_blobLoader); 354 354 ASSERT(m_blobLoaderStatus == BlobLoaderStarted); … … 357 357 void WebSocketChannel::didReceiveData() 358 358 { 359 LOG(Network, "WebSocketChannel %p didReceiveData ", this);359 LOG(Network, "WebSocketChannel %p didReceiveData()", this); 360 360 ASSERT(m_blobLoader); 361 361 ASSERT(m_blobLoaderStatus == BlobLoaderStarted); … … 364 364 void WebSocketChannel::didFinishLoading() 365 365 { 366 LOG(Network, "WebSocketChannel %p didFinishLoading ", this);366 LOG(Network, "WebSocketChannel %p didFinishLoading()", this); 367 367 ASSERT(m_blobLoader); 368 368 ASSERT(m_blobLoaderStatus == BlobLoaderStarted); … … 374 374 void WebSocketChannel::didFail(int errorCode) 375 375 { 376 LOG(Network, "WebSocketChannel %p didFail 376 LOG(Network, "WebSocketChannel %p didFail() errorCode=%d", this, errorCode); 377 377 ASSERT(m_blobLoader); 378 378 ASSERT(m_blobLoaderStatus == BlobLoaderStarted); … … 388 388 size_t newBufferSize = m_buffer.size() + len; 389 389 if (newBufferSize < m_buffer.size()) { 390 LOG(Network, "WebSocket buffer overflow (%lu+%lu)", static_cast<unsigned long>(m_buffer.size()), static_cast<unsigned long>(len));390 LOG(Network, "WebSocketChannel %p appendToBuffer() Buffer overflow (%lu bytes already in receive buffer and appending %lu bytes)", this, static_cast<unsigned long>(m_buffer.size()), static_cast<unsigned long>(len)); 391 391 return false; 392 392 } … … 407 407 ASSERT(m_client); 408 408 ASSERT(!m_buffer.isEmpty()); 409 LOG(Network, "WebSocketChannel %p processBuffer %lu", this, static_cast<unsigned long>(m_buffer.size()));409 LOG(Network, "WebSocketChannel %p processBuffer() Receive buffer has %lu bytes", this, static_cast<unsigned long>(m_buffer.size())); 410 410 411 411 if (m_shouldDiscardReceivedData) … … 433 433 } 434 434 // FIXME: handle set-cookie2. 435 LOG(Network, "WebSocketChannel %p connected", this);435 LOG(Network, "WebSocketChannel %p Connected", this); 436 436 skipBuffer(headerLength); 437 437 m_client->didConnect(); 438 LOG(Network, " remaining in read buf %lu", static_cast<unsigned long>(m_buffer.size()));438 LOG(Network, "WebSocketChannel %p %lu bytes remaining in m_buffer", this, static_cast<unsigned long>(m_buffer.size())); 439 439 return !m_buffer.isEmpty(); 440 440 } 441 441 ASSERT(m_handshake->mode() == WebSocketHandshake::Failed); 442 LOG(Network, "WebSocketChannel %p connection failed", this);442 LOG(Network, "WebSocketChannel %p Connection failed", this); 443 443 skipBuffer(headerLength); 444 444 m_shouldDiscardReceivedData = true; … … 466 466 void WebSocketChannel::startClosingHandshake(int code, const String& reason) 467 467 { 468 LOG(Network, "WebSocketChannel %p closing %d%d", this, m_closing, m_receivedClosingHandshake);468 LOG(Network, "WebSocketChannel %p startClosingHandshake() code=%d m_receivedClosingHandshake=%d", this, m_closing, m_receivedClosingHandshake); 469 469 if (m_closing) 470 470 return; … … 488 488 void WebSocketChannel::closingTimerFired(Timer<WebSocketChannel>* timer) 489 489 { 490 LOG(Network, "WebSocketChannel %p closing timer", this);490 LOG(Network, "WebSocketChannel %p closingTimerFired()", this); 491 491 ASSERT_UNUSED(timer, &m_closingTimer == timer); 492 492 if (m_handle) -
trunk/Source/WebCore/Modules/websockets/WebSocketDeflater.cpp
r131395 r147542 72 72 int result = deflateEnd(m_stream.get()); 73 73 if (result != Z_OK) 74 LOG(Network, " deflateEnd() failed: %d", result);74 LOG(Network, "WebSocketDeflater %p Destructor deflateEnd() failed: %d is returned", this, result); 75 75 } 76 76 … … 149 149 int result = inflateEnd(m_stream.get()); 150 150 if (result != Z_OK) 151 LOG(Network, " inflateEnd() failed: %d", result);151 LOG(Network, "WebSocketInflater %p Destructor inflateEnd() failed: %d is returned", this, result); 152 152 } 153 153 -
trunk/Source/WebCore/Modules/websockets/WebSocketHandshake.cpp
r145745 r147542 297 297 return len; 298 298 } 299 LOG(Network, " response code: %d", statusCode);299 LOG(Network, "WebSocketHandshake %p readServerHandshake() Status code is %d", this, statusCode); 300 300 m_response.setStatusCode(statusCode); 301 301 m_response.setStatusText(statusText); … … 313 313 const char* p = readHTTPHeaders(header + lineLength, header + len); 314 314 if (!p) { 315 LOG(Network, " readHTTPHeaders failed");315 LOG(Network, "WebSocketHandshake %p readServerHandshake() readHTTPHeaders() failed", this); 316 316 m_mode = Failed; // m_failureReason is set inside readHTTPHeaders(). 317 317 return len; 318 318 } 319 319 if (!checkResponseHeaders()) { 320 LOG(Network, " header process failed");320 LOG(Network, "WebSocketHandshake %p readServerHandshake() checkResponseHeaders() failed", this); 321 321 m_mode = Failed; 322 322 return p - header; -
trunk/Source/WebCore/platform/network/chromium/SocketStreamHandle.cpp
r146965 r147542 60 60 { 61 61 m_socket = adoptPtr(WebKit::Platform::current()->createSocketStreamHandle()); 62 LOG(Network, " connect");62 LOG(Network, "SocketStreamHandleInternal %p connect()", this); 63 63 ASSERT(m_socket); 64 64 ASSERT(m_handle); … … 70 70 int SocketStreamHandleInternal::send(const char* data, int len) 71 71 { 72 LOG(Network, " send len=%d", len);72 LOG(Network, "SocketStreamHandleInternal %p send() len=%d", this, len); 73 73 // FIXME: |m_socket| should not be null here, but it seems that there is the 74 74 // case. We should figure out such a path and fix it rather than checking 75 75 // null here. 76 76 if (!m_socket) { 77 LOG(Network, " m_socket is null when sending. It should not be.");77 LOG(Network, "SocketStreamHandleInternal %p send() m_socket is NULL", this); 78 78 return 0; 79 79 } … … 86 86 if (m_socket->send(webdata)) { 87 87 m_pendingAmountSent += len; 88 LOG(Network, " sent");88 LOG(Network, "SocketStreamHandleInternal %p send() Sent %d bytes", this, len); 89 89 return len; 90 90 } 91 LOG(Network, " busy. buffering");91 LOG(Network, "SocketStreamHandleInternal %p send() m_socket->send() failed", this); 92 92 return 0; 93 93 } … … 95 95 void SocketStreamHandleInternal::close() 96 96 { 97 LOG(Network, " close");97 LOG(Network, "SocketStreamHandleInternal %p close()", this); 98 98 if (m_socket) 99 99 m_socket->close(); … … 102 102 void SocketStreamHandleInternal::didOpenStream(WebKit::WebSocketStreamHandle* socketHandle, int maxPendingSendAllowed) 103 103 { 104 LOG(Network, "SocketStreamHandleInternal::didOpen %d", 105 maxPendingSendAllowed); 104 LOG(Network, "SocketStreamHandleInternal %p didOpenStream() maxPendingSendAllowed=%d", this, maxPendingSendAllowed); 106 105 ASSERT(maxPendingSendAllowed > 0); 107 106 if (m_handle && m_socket) { … … 114 113 } 115 114 } 116 LOG(Network, " no m_handle or m_socket?");115 LOG(Network, "SocketStreamHandleInternal %p didOpenStream() m_handle or m_socket is NULL", this); 117 116 } 118 117 119 118 void SocketStreamHandleInternal::didSendData(WebKit::WebSocketStreamHandle* socketHandle, int amountSent) 120 119 { 121 LOG(Network, "SocketStreamHandleInternal ::didSendData %d", amountSent);120 LOG(Network, "SocketStreamHandleInternal %p didSendData() amountSent=%d", this, amountSent); 122 121 ASSERT(amountSent > 0); 123 122 if (m_handle && m_socket) { … … 131 130 void SocketStreamHandleInternal::didReceiveData(WebKit::WebSocketStreamHandle* socketHandle, const WebKit::WebData& data) 132 131 { 133 LOG(Network, " didReceiveData");132 LOG(Network, "SocketStreamHandleInternal %p didReceiveData() Received %lu bytes", this, data.size()); 134 133 if (m_handle && m_socket) { 135 134 ASSERT(socketHandle == m_socket.get()); … … 141 140 void SocketStreamHandleInternal::didClose(WebKit::WebSocketStreamHandle* socketHandle) 142 141 { 143 LOG(Network, " didClose");142 LOG(Network, "SocketStreamHandleInternal %p didClose()", this); 144 143 if (m_handle && m_socket) { 145 144 ASSERT(socketHandle == m_socket.get()); … … 154 153 void SocketStreamHandleInternal::didFail(WebKit::WebSocketStreamHandle* socketHandle, const WebKit::WebSocketStreamError& err) 155 154 { 156 LOG(Network, " didFail");155 LOG(Network, "SocketStreamHandleInternal %p didFail()", this); 157 156 if (m_handle && m_socket) { 158 157 ASSERT(socketHandle == m_socket.get());
Note: See TracChangeset
for help on using the changeset viewer.