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

Side by Side Diff: third_party/WebKit/Source/modules/websockets/DocumentWebSocketChannel.cpp

Issue 1461283002: [DO NOT COMMIT] mojo datapipe performance measurement Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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) 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 m_blobLoader.clear(); 569 m_blobLoader.clear();
570 if (errorCode == FileError::ABORT_ERR) { 570 if (errorCode == FileError::ABORT_ERR) {
571 // The error is caused by cancel(). 571 // The error is caused by cancel().
572 return; 572 return;
573 } 573 }
574 // FIXME: Generate human-friendly reason message. 574 // FIXME: Generate human-friendly reason message.
575 failAsError("Failed to load Blob: error code = " + String::number(errorCode) ); 575 failAsError("Failed to load Blob: error code = " + String::number(errorCode) );
576 // |this| can be deleted here. 576 // |this| can be deleted here.
577 } 577 }
578 578
579 void DocumentWebSocketChannel::loaderTestTransmit(WebSocketHandle::LoaderTestIPC ipc, bool verifyData, size_t bucketSize, size_t bufferSize, size_t totalSize, W ebCallbacks<int, void>* callbacks)
580 {
581 m_handle->loaderTestTransmit(ipc, verifyData, bucketSize, bufferSize, totalS ize, callbacks);
582 }
583
584
579 DEFINE_TRACE(DocumentWebSocketChannel) 585 DEFINE_TRACE(DocumentWebSocketChannel)
580 { 586 {
581 visitor->trace(m_blobLoader); 587 visitor->trace(m_blobLoader);
582 visitor->trace(m_messages); 588 visitor->trace(m_messages);
583 visitor->trace(m_client); 589 visitor->trace(m_client);
584 WebSocketChannel::trace(visitor); 590 WebSocketChannel::trace(visitor);
585 ContextLifecycleObserver::trace(visitor); 591 ContextLifecycleObserver::trace(visitor);
586 } 592 }
587 593
588 } // namespace blink 594 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698