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

Issue 6402002: Simplify HttpCache/HttpNetworkLayer/HttpNetworkSession interaction. (Closed)

Created:
9 years, 11 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, idana, Raghu Simha, ncarter (slow), darin-cc_chromium.org, Paweł Hajdan Jr., tim (not reviewing), pam+watch_chromium.org, amit
Visibility:
Public.

Description

Simplify HttpCache/HttpNetworkLayer/HttpNetworkSession interaction. Eliminate lazy initialization of HttpNetworkSession in HttpNetworkLayer. * This eliminates the need to update parameters for HttpNetworkLayer, it just takes a HttpNetworkSession. * It is OK to eliminate lazy initialization since these variables are cheap. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72931

Patch Set 1 #

Patch Set 2 : Merge #

Patch Set 3 : Fix breakages. #

Patch Set 4 : Fix ChromeFrame build. #

Patch Set 5 : Fix plugin_test.cpp and spdy tests. #

Patch Set 6 : Fix CF tests. #

Total comments: 15

Patch Set 7 : Fix nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -415 lines) Patch
M chrome/browser/io_thread.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 5 6 2 chunks +13 lines, -40 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 6 2 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/net/connection_tester_unittest.cc View 1 2 3 4 5 6 2 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/policy/device_management_service.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/http_bridge.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 2 3 4 5 6 2 chunks +18 lines, -12 lines 0 comments Download
M chrome/test/plugin/plugin_test.cpp View 1 2 3 4 5 6 2 chunks +18 lines, -12 lines 0 comments Download
M chrome_frame/metrics_service.cc View 1 2 3 2 chunks +19 lines, -12 lines 0 comments Download
M chrome_frame/test/test_server_test.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M net/http/http_cache.h View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_cache.cc View 3 chunks +20 lines, -7 lines 0 comments Download
M net/http/http_network_layer.h View 1 2 chunks +2 lines, -65 lines 0 comments Download
M net/http/http_network_layer.cc View 1 3 chunks +1 line, -126 lines 0 comments Download
M net/http/http_network_layer_unittest.cc View 1 2 2 chunks +78 lines, -64 lines 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 4 chunks +33 lines, -16 lines 0 comments Download
M net/spdy/spdy_test_util.cc View 1 2 3 4 5 6 2 chunks +16 lines, -13 lines 0 comments Download
M net/tools/fetch/fetch_client.cc View 1 2 chunks +19 lines, -16 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 chunks +16 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
willchan no longer on Chromium
wtc: This is step one. I'll probably introduce a HttpNetworkSession::Params struct after this.
9 years, 11 months ago (2011-01-27 04:31:04 UTC) #1
wtc
LGTM. Please note the two comments marked with "IMPORTANT" below. All the other comments are ...
9 years, 11 months ago (2011-01-28 01:51:23 UTC) #2
willchan no longer on Chromium
I've addressed your two main points here. Since you gave the LGTM, I'm going to ...
9 years, 11 months ago (2011-01-28 06:12:07 UTC) #3
wtc
9 years, 11 months ago (2011-01-28 18:19:48 UTC) #4
http://codereview.chromium.org/6402002/diff/11001/net/url_request/url_request...
File net/url_request/url_request_test_util.cc (right):

http://codereview.chromium.org/6402002/diff/11001/net/url_request/url_request...
net/url_request/url_request_test_util.cc:12: #include
"net/spdy/spdy_session_pool.h"
When I reviewed this CL, I first reviewed the "net" files,
and then the "chrome" files.  So this was the first file where
I saw these three headers, but later I saw these three headers
added to some of the "chrome" files, too.

What stands out the most is spdy_session_pool.h, followed
by client_socket_factory.h.  I am complaining about not
only exposing implementation details, but also imposing
a burden on network stack users.  A user of the network stack
should not need to write the same "boilerplate" code to use
the default client socket factory or create a SPDY session
pool.

I look forward to more cleanup patches from you.  Thank you
for working on this!

Powered by Google App Engine
This is Rietveld 408576698