diff options
author | tyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-03 17:13:02 +0000 |
---|---|---|
committer | tyoshino@chromium.org <tyoshino@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-03 17:13:02 +0000 |
commit | 21dc4c2c1747a71efebb36067577df3af367d01f (patch) | |
tree | a5416176d140c293448e43c736b31a44f840d2ab /chrome/browser/search_engines/template_url.cc | |
parent | 31782c03a4a6746e8fc194ecf036b203a1942e55 (diff) | |
download | chromium_src-21dc4c2c1747a71efebb36067577df3af367d01f.zip chromium_src-21dc4c2c1747a71efebb36067577df3af367d01f.tar.gz chromium_src-21dc4c2c1747a71efebb36067577df3af367d01f.tar.bz2 |
Clean up SocketStream send operation by utilizing DrainableIOBuffer.
- Remove unnecessary variables, write_buf_, write_buf_offset_ and write_buf_size_, and utilize the DrainableIOBuffer |current_write_buf_| to do what they were doing.
- Use waiting_for_write_completion_ instead of current_write_buf_ to remember
whether Write operation is ongoing or not.
- Make DidSendData void and return OK outside it.
- In SendData(), now max_pending_send_allowed_ check is done even if current_write_buf_ (formerly write_buf_) is NULL
- Rewrite comments.
TEST=net_unittests --gtest_filter='SocketStreamTest.*'
Review URL: https://chromiumcodereview.appspot.com/12742018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192080 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines/template_url.cc')
0 files changed, 0 insertions, 0 deletions