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

Issue 649783002: Add mojo <--> net IO adapters. (Closed)

Created:
6 years, 2 months ago by brettw
Modified:
6 years, 2 months ago
Reviewers:
yzshen1, viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add mojo <--> net IO adapters. This refactors the net->mojo adapter currently in the URL loader and moves it to the net_adapters file so it can be shared with the tcp_socket. An adapter going in the opposite direction (currently unused) is also added. Makes some changes to the existing adapter: naming for clarify (since there is now one going in the opposite direction, things were getting pretty confusing), and some of the setup logic was moved into a static function so it can be shared. Clarify requirements for calling EndWriteData (the old code called this in error cases as well). Committed: https://crrev.com/1167859505244b69c95e3f7ceb9c7a048a6c0774 Cr-Commit-Position: refs/heads/master@{#299211}

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -85 lines) Patch
M mojo/public/c/system/data_pipe.h View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M mojo/services/network/net_adapters.h View 1 2 1 chunk +115 lines, -0 lines 0 comments Download
M mojo/services/network/net_adapters.cc View 1 2 1 chunk +99 lines, -0 lines 0 comments Download
M mojo/services/network/url_loader_impl.h View 4 chunks +3 lines, -5 lines 0 comments Download
M mojo/services/network/url_loader_impl.cc View 1 2 3 chunks +10 lines, -77 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
brettw
trung: data_pipe.h yzshen: everything else
6 years, 2 months ago (2014-10-10 19:41:53 UTC) #2
yzshen1
https://codereview.chromium.org/649783002/diff/60001/mojo/public/c/system/data_pipe.h File mojo/public/c/system/data_pipe.h (right): https://codereview.chromium.org/649783002/diff/60001/mojo/public/c/system/data_pipe.h#newcode190 mojo/public/c/system/data_pipe.h:190: // When |MojoBeginWriteData)_| returtns MOJO_RESULT_OK, and the caller has ...
6 years, 2 months ago (2014-10-10 21:19:00 UTC) #3
brettw
Thanks for the great review. PTAL https://codereview.chromium.org/649783002/diff/60001/mojo/public/c/system/data_pipe.h File mojo/public/c/system/data_pipe.h (right): https://codereview.chromium.org/649783002/diff/60001/mojo/public/c/system/data_pipe.h#newcode193 mojo/public/c/system/data_pipe.h:193: // |MojoEndWriteData()| need ...
6 years, 2 months ago (2014-10-10 22:36:59 UTC) #4
yzshen1
LGTM
6 years, 2 months ago (2014-10-10 22:38:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/649783002/230001
6 years, 2 months ago (2014-10-10 22:41:42 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:230001)
6 years, 2 months ago (2014-10-10 23:30:20 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 23:31:09 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1167859505244b69c95e3f7ceb9c7a048a6c0774
Cr-Commit-Position: refs/heads/master@{#299211}

Powered by Google App Engine
This is Rietveld 408576698