forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return ChannelState from WebSocketChannel::SendFrame
The new WebSocketBlobSender class needs to call SendFrame() from within its state-machine loop. For efficiency, this is best done synchronously. In order that it can detect when it should abort because the channel has been deleted, return ChannelState from SendFrame(). See design document at https://docs.google.com/document/d/1CDiXB9pBumhFVVfmIn1CRI6v6byxyqWu2urEE9xp714/edit Also remove some obsolete comments from the SendFrame() method. BUG=571656 TEST=net_unittests Review URL: https://codereview.chromium.org/1581613003 Cr-Commit-Position: refs/heads/master@{#369530}
- Loading branch information
Showing
2 changed files
with
32 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters