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

Issue 517693002: Add embedder-specific headers to HTTP CONNECT tunnel request (Closed)

Created:
6 years, 3 months ago by bengr
Modified:
6 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add embedder-specific headers to HTTP CONNECT tunnel request Adds a mechanism by which a net/ embedder can add headers to a HTTP CONNECT tunnel request. BUG=400872 Committed: https://crrev.com/39e40610845c395edde654e40fc8d88e466aea81 Cr-Commit-Position: refs/heads/master@{#294252}

Patch Set 1 : #

Patch Set 2 : Added tests #

Total comments: 1

Patch Set 3 : Changed interface to a delegate #

Patch Set 4 : Added receive notification and test #

Total comments: 3

Patch Set 5 : Added ProxyDelegate to address offline comments on net-dev #

Patch Set 6 : Forgot to upload the new files #

Total comments: 32

Patch Set 7 : Addressed comments from mef and mmenke #

Total comments: 4

Patch Set 8 : rebase and nits #

Patch Set 9 : fixed ifdef #

Patch Set 10 : Reworked HaveAuth test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+463 lines, -53 lines) Patch
M chrome/browser/io_thread.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -0 lines 0 comments Download
M components/data_reduction_proxy.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h View 1 2 3 4 5 6 7 3 chunks +19 lines, -1 line 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.cc View 1 2 3 4 5 6 7 3 chunks +28 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler_unittest.cc View 1 2 3 4 5 6 7 3 chunks +23 lines, -3 lines 0 comments Download
A components/data_reduction_proxy/browser/data_reduction_proxy_delegate.h View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/browser/data_reduction_proxy_delegate.cc View 1 2 3 4 5 1 chunk +51 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/browser/data_reduction_proxy_protocol.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A net/base/proxy_delegate.h View 1 2 3 4 5 6 7 1 chunk +71 lines, -0 lines 0 comments Download
M net/http/http_network_session.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -1 line 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M net/http/http_proxy_client_socket.h View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_proxy_client_socket.cc View 1 2 3 4 5 6 5 chunks +15 lines, -0 lines 0 comments Download
M net/http/http_proxy_client_socket_pool.h View 1 2 3 4 5 6 7 7 chunks +11 lines, -1 line 0 comments Download
M net/http/http_proxy_client_socket_pool.cc View 1 2 3 4 5 6 7 6 chunks +9 lines, -2 lines 0 comments Download
M net/http/http_proxy_client_socket_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 19 chunks +129 lines, -35 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M net/socket/client_socket_pool_manager.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M net/socket/client_socket_pool_manager_impl.h View 1 2 3 4 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M net/socket/client_socket_pool_manager_impl.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 29 (5 generated)
bengr
Patchset #1 (id:1) has been deleted
6 years, 3 months ago (2014-08-28 18:28:06 UTC) #1
bengr
Patchset #1 (id:20001) has been deleted
6 years, 3 months ago (2014-08-28 18:31:08 UTC) #2
bengr
Patchset #1 (id:40001) has been deleted
6 years, 3 months ago (2014-08-28 18:34:48 UTC) #3
bengr
mmenke: net/*, chrome/browser/io_thread* marq: components/data_reduction_proxcy
6 years, 3 months ago (2014-08-30 01:14:24 UTC) #5
marq (ping after 24h)
components/ LGTM.
6 years, 3 months ago (2014-09-01 16:45:18 UTC) #7
mmenke
[+mef]: Mind taking this one? I'm rather sad to see more complicated hooks like this ...
6 years, 3 months ago (2014-09-02 14:57:08 UTC) #10
mmenke
On 2014/09/02 14:57:08, mmenke wrote: > [+mef]: Mind taking this one? > > I'm rather ...
6 years, 3 months ago (2014-09-02 15:06:44 UTC) #11
mef
On 2014/09/02 14:57:08, mmenke wrote: > [+mef]: Mind taking this one? > > I'm rather ...
6 years, 3 months ago (2014-09-02 15:25:26 UTC) #12
bengr
On 2014/09/02 15:06:44, mmenke wrote: > On 2014/09/02 14:57:08, mmenke wrote: > > [+mef]: Mind ...
6 years, 3 months ago (2014-09-02 15:25:41 UTC) #13
mef
https://codereview.chromium.org/517693002/diff/80001/net/http/http_network_session.h File net/http/http_network_session.h (right): https://codereview.chromium.org/517693002/diff/80001/net/http/http_network_session.h#newcode125 net/http/http_network_session.h:125: before_proxy_tunnel_request_callback; Is there particular reason why it is a ...
6 years, 3 months ago (2014-09-02 17:08:36 UTC) #14
mmenke
On 2014/09/02 17:08:36, mef wrote: > https://codereview.chromium.org/517693002/diff/80001/net/http/http_network_session.h > File net/http/http_network_session.h (right): > > https://codereview.chromium.org/517693002/diff/80001/net/http/http_network_session.h#newcode125 > ...
6 years, 3 months ago (2014-09-02 20:11:25 UTC) #15
bengr
PTAL. The CL reflects the discussion on net-dev. I plan to add a test for ...
6 years, 3 months ago (2014-09-05 02:55:03 UTC) #16
mef
This looks much cleaner. It seems that it customary to use "blah* const" for member ...
6 years, 3 months ago (2014-09-05 17:22:51 UTC) #17
bengr
mef: PTAL https://codereview.chromium.org/517693002/diff/120001/net/http/http_proxy_client_socket_pool.h File net/http/http_proxy_client_socket_pool.h (right): https://codereview.chromium.org/517693002/diff/120001/net/http/http_proxy_client_socket_pool.h#newcode277 net/http/http_proxy_client_socket_pool.h:277: HttpProxyTunnelDelegate* http_proxy_tunnel_delegate_; On 2014/09/05 17:22:50, mef wrote: ...
6 years, 3 months ago (2014-09-07 21:02:24 UTC) #18
mef
https://codereview.chromium.org/517693002/diff/160001/net/base/proxy_delegate.h File net/base/proxy_delegate.h (right): https://codereview.chromium.org/517693002/diff/160001/net/base/proxy_delegate.h#newcode39 net/base/proxy_delegate.h:39: // Called after a proxy connection. Allows the delegate ...
6 years, 3 months ago (2014-09-08 15:06:48 UTC) #19
mmenke
Quick comments. I think this approach looks fine. https://codereview.chromium.org/517693002/diff/160001/net/base/proxy_delegate.h File net/base/proxy_delegate.h (right): https://codereview.chromium.org/517693002/diff/160001/net/base/proxy_delegate.h#newcode9 net/base/proxy_delegate.h:9: #include ...
6 years, 3 months ago (2014-09-08 17:38:50 UTC) #20
mmenke
Oh, and I'm going to defer to Misha on this review, these are just issues ...
6 years, 3 months ago (2014-09-08 17:39:29 UTC) #21
bengr
https://codereview.chromium.org/517693002/diff/160001/net/base/proxy_delegate.h File net/base/proxy_delegate.h (right): https://codereview.chromium.org/517693002/diff/160001/net/base/proxy_delegate.h#newcode9 net/base/proxy_delegate.h:9: #include "url/gurl.h" On 2014/09/08 17:38:49, mmenke wrote: > Can ...
6 years, 3 months ago (2014-09-09 01:28:49 UTC) #22
mef
LGTM, but you'll need mmenke's approval for io_thread. I'm also a bit confused about fairly ...
6 years, 3 months ago (2014-09-10 15:05:25 UTC) #23
mmenke
io_thread LGTM.
6 years, 3 months ago (2014-09-10 15:18:57 UTC) #24
bengr
mef@: I'll take another look at const inconsistencies in the follow-up CL what wires up ...
6 years, 3 months ago (2014-09-10 19:19:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bengr@chromium.org/517693002/240001
6 years, 3 months ago (2014-09-10 21:49:52 UTC) #27
commit-bot: I haz the power
Committed patchset #10 (id:240001) as 1a4e99f0360a229582c70756dc67ba114c94ed2b
6 years, 3 months ago (2014-09-10 23:11:10 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 23:13:52 UTC) #29
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/39e40610845c395edde654e40fc8d88e466aea81
Cr-Commit-Position: refs/heads/master@{#294252}

Powered by Google App Engine
This is Rietveld 408576698