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

Issue 10834215: Remove static variables from HttpStreamFactory. (Closed)

Created:
8 years, 4 months ago by szager1
Modified:
8 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, jam, joi+watch-content_chromium.org, eroman, darin-cc_chromium.org, pam+watch_chromium.org, willchan no longer on Chromium
Visibility:
Public.

Description

Remove static variables from HttpStreamFactory. Refresh of issue 10389162. BUG=124900 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155485

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Fixed host_mapping_rules #

Patch Set 4 : Add new fields to IOThread::Globals #

Patch Set 5 : Set all net::HttpNetworkSession::Params in URLRequestContextBuilder. #

Patch Set 6 : rebase #

Total comments: 10

Patch Set 7 : Apply network settings to jingle #

Total comments: 5

Patch Set 8 : Added ProfileIOData::PopulateNetworkSessionParams. #

Patch Set 9 : Added URLRequestContext::GetReferenceParams() #

Total comments: 3

Patch Set 10 : Use pointer for out parameter to GetReferenceParams() #

Patch Set 11 : syntax error #

Total comments: 7

Patch Set 12 : GetReferenceParams -> GetNetworkSessionParams #

Patch Set 13 : GetNetworkSessionParams returns const* #

Total comments: 1

Patch Set 14 : Changed signature for ProfileIOData::PopulateNetworkSessionParams #

Patch Set 15 : Rebaseline #

Patch Set 16 : Fix ShellBrowserContext #

Patch Set 17 : Reordered fields in HttpStreamFactory::Params #

Patch Set 18 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -303 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -28 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 8 chunks +53 lines, -7 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +5 lines, -22 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -18 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +33 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc View 2 chunks +9 lines, -3 lines 0 comments Download
M content/shell/shell_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/shell_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -1 line 0 comments Download
M content/shell/shell_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_url_request_context_getter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +26 lines, -14 lines 0 comments Download
M jingle/glue/proxy_resolving_client_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -0 lines 0 comments Download
M net/http/http_cache.h View 2 chunks +3 lines, -13 lines 0 comments Download
M net/http/http_cache.cc View 1 2 3 4 5 6 2 chunks +4 lines, -62 lines 0 comments Download
M net/http/http_network_session.h View 1 2 3 4 5 6 17 2 chunks +9 lines, -0 lines 0 comments Download
M net/http/http_network_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -1 line 0 comments Download
M net/http/http_pipelined_network_transaction_unittest.cc View 3 chunks +1 line, -11 lines 0 comments Download
M net/http/http_stream_factory.h View 4 chunks +4 lines, -35 lines 0 comments Download
M net/http/http_stream_factory.cc View 1 2 3 4 5 6 5 chunks +5 lines, -30 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_manager.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -3 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +11 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 2 3 4 4 chunks +21 lines, -0 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 3 chunks +44 lines, -27 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 2 3 4 5 6 2 chunks +15 lines, -15 lines 0 comments Download

Messages

Total messages: 49 (0 generated)
szager1
Dusting this one off... the last comment from mmenke was: "Heard back from Will, and ...
8 years, 4 months ago (2012-08-20 23:55:59 UTC) #1
mmenke
Sorry, I may not get to this until tomorrow.
8 years, 4 months ago (2012-08-21 17:55:47 UTC) #2
szager1
Upon further examination, it appears that ServiceURLRequestContext is not currently affected by the static variables ...
8 years, 4 months ago (2012-08-22 00:12:34 UTC) #3
szager1
ping
8 years, 4 months ago (2012-08-23 17:20:08 UTC) #4
mmenke
Just nits. The main concern is to make sure we don't break anything by not ...
8 years, 4 months ago (2012-08-23 18:11:27 UTC) #5
mmenke
Oh, and sorry for not getting back to you earlier - a lot of reviews ...
8 years, 4 months ago (2012-08-23 18:12:05 UTC) #6
szager1
Sorry this is lagging so much; stuff keeps coming up. Scratched all nits, and applied ...
8 years, 3 months ago (2012-08-30 22:32:05 UTC) #7
mmenke
On 2012/08/30 22:32:05, szager1 wrote: > Sorry this is lagging so much; stuff keeps coming ...
8 years, 3 months ago (2012-08-31 16:22:04 UTC) #8
mmenke
Let's see...You'll need OWNERS reviews for the changes in chrome/browser (Except profiles/), jingle, and webkit.
8 years, 3 months ago (2012-08-31 16:26:32 UTC) #9
szager1
Added OWNERS: akalin: jingle jamesr: webkit nico: chrome/* Thanks, Stefan
8 years, 3 months ago (2012-08-31 16:57:45 UTC) #10
Nico
http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc#newcode450 chrome/browser/profiles/profile_impl_io_data.cc:450: network_session_params.trusted_spdy_proxy = trusted_spdy_proxy; This looks fairly similar to off_the_record_profile_io_data.cc. ...
8 years, 3 months ago (2012-08-31 17:12:19 UTC) #11
szager1
http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc#newcode450 chrome/browser/profiles/profile_impl_io_data.cc:450: network_session_params.trusted_spdy_proxy = trusted_spdy_proxy; On 2012/08/31 17:12:19, Nico wrote: > ...
8 years, 3 months ago (2012-08-31 17:17:43 UTC) #12
mmenke
http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc File chrome/browser/profiles/profile_impl_io_data.cc (right): http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc#newcode450 chrome/browser/profiles/profile_impl_io_data.cc:450: network_session_params.trusted_spdy_proxy = trusted_spdy_proxy; On 2012/08/31 17:17:43, szager1 wrote: > ...
8 years, 3 months ago (2012-08-31 17:21:53 UTC) #13
szager
On Aug 31, 2012 10:21 AM, <mmenke@chromium.org> wrote: > > > http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc > File chrome/browser/profiles/profile_impl_io_data.cc ...
8 years, 3 months ago (2012-08-31 17:39:39 UTC) #14
mmenke
On 2012/08/31 17:39:39, szager wrote: > On Aug 31, 2012 10:21 AM, <mailto:mmenke@chromium.org> wrote: > ...
8 years, 3 months ago (2012-08-31 17:51:52 UTC) #15
mmenke
On 2012/08/31 17:51:52, Matt Menke wrote: > On 2012/08/31 17:39:39, szager wrote: > > On ...
8 years, 3 months ago (2012-08-31 17:53:13 UTC) #16
willchan no longer on Chromium
I'd prefer to keep stuff out of Profile. ProfileIOData is fine though. Or ChromeURLRequestContext. On ...
8 years, 3 months ago (2012-08-31 17:56:47 UTC) #17
mmenke
On 2012/08/31 17:56:47, willchan wrote: > I'd prefer to keep stuff out of Profile. ProfileIOData ...
8 years, 3 months ago (2012-08-31 17:57:57 UTC) #18
akalin
http://codereview.chromium.org/10834215/diff/25001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): http://codereview.chromium.org/10834215/diff/25001/jingle/glue/proxy_resolving_client_socket.cc#newcode67 jingle/glue/proxy_resolving_client_socket.cc:67: net::HttpTransactionFactory* transaction_factory = This seems to violate the principle ...
8 years, 3 months ago (2012-08-31 19:44:48 UTC) #19
szager1
http://codereview.chromium.org/10834215/diff/25001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): http://codereview.chromium.org/10834215/diff/25001/jingle/glue/proxy_resolving_client_socket.cc#newcode67 jingle/glue/proxy_resolving_client_socket.cc:67: net::HttpTransactionFactory* transaction_factory = On 2012/08/31 19:44:48, akalin wrote: > ...
8 years, 3 months ago (2012-08-31 19:59:15 UTC) #20
akalin
> That's kind of at odds with comment #15. Maybe something like this: > > ...
8 years, 3 months ago (2012-08-31 20:18:05 UTC) #21
szager1
On 2012/08/31 20:18:05, akalin wrote: > > That's kind of at odds with comment #15. ...
8 years, 3 months ago (2012-08-31 22:58:04 UTC) #22
Nico
http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc#newcode657 chrome/browser/profiles/profile_io_data.cc:657: net::HttpNetworkSession::Params& params, style guide says out params should be ...
8 years, 3 months ago (2012-08-31 23:03:16 UTC) #23
szager1
On 2012/08/31 17:12:19, Nico wrote: > http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc > File chrome/browser/profiles/profile_impl_io_data.cc (right): > > http://codereview.chromium.org/10834215/diff/25001/chrome/browser/profiles/profile_impl_io_data.cc#newcode450 > ...
8 years, 3 months ago (2012-08-31 23:05:19 UTC) #24
szager1
http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc#newcode657 chrome/browser/profiles/profile_io_data.cc:657: net::HttpNetworkSession::Params& params, On 2012/08/31 23:03:16, Nico wrote: > style ...
8 years, 3 months ago (2012-08-31 23:07:47 UTC) #25
akalin
jingle lgtm
8 years, 3 months ago (2012-09-01 00:28:18 UTC) #26
mmenke
http://codereview.chromium.org/10834215/diff/26028/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/10834215/diff/26028/net/socket_stream/socket_stream.cc#newcode1305 net/socket_stream/socket_stream.cc:1305: HttpTransactionFactory* factory = context_->http_transaction_factory(); GetReferenceParams? http://codereview.chromium.org/10834215/diff/26028/net/url_request/url_request_context.h File net/url_request/url_request_context.h (right): ...
8 years, 3 months ago (2012-09-04 17:43:13 UTC) #27
szager1
http://codereview.chromium.org/10834215/diff/26028/net/socket_stream/socket_stream.cc File net/socket_stream/socket_stream.cc (right): http://codereview.chromium.org/10834215/diff/26028/net/socket_stream/socket_stream.cc#newcode1305 net/socket_stream/socket_stream.cc:1305: HttpTransactionFactory* factory = context_->http_transaction_factory(); On 2012/09/04 17:43:13, Matt Menke ...
8 years, 3 months ago (2012-09-04 19:31:07 UTC) #28
mmenke
http://codereview.chromium.org/10834215/diff/26028/net/url_request/url_request_context.h File net/url_request/url_request_context.h (right): http://codereview.chromium.org/10834215/diff/26028/net/url_request/url_request_context.h#newcode58 net/url_request/url_request_context.h:58: bool GetReferenceParams(HttpNetworkSession::Params* params) const; On 2012/09/04 19:31:07, szager1 wrote: ...
8 years, 3 months ago (2012-09-04 19:35:40 UTC) #29
szager1
On 2012/09/04 19:35:40, Matt Menke wrote: > I was thinking something more along the lines ...
8 years, 3 months ago (2012-09-04 20:53:52 UTC) #30
mmenke
On 2012/09/04 20:53:52, szager1 wrote: > On 2012/09/04 19:35:40, Matt Menke wrote: > > > ...
8 years, 3 months ago (2012-09-04 20:58:54 UTC) #31
Nico
http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc#newcode657 chrome/browser/profiles/profile_io_data.cc:657: net::HttpNetworkSession::Params& params, On 2012/08/31 23:07:48, szager1 wrote: > On ...
8 years, 3 months ago (2012-09-04 21:08:13 UTC) #32
Nico
8 years, 3 months ago (2012-09-04 21:08:18 UTC) #33
mmenke
http://codereview.chromium.org/10834215/diff/27044/chrome/browser/profiles/profile_io_data.cc File chrome/browser/profiles/profile_io_data.cc (right): http://codereview.chromium.org/10834215/diff/27044/chrome/browser/profiles/profile_io_data.cc#newcode658 chrome/browser/profiles/profile_io_data.cc:658: const ProfileParams* profile_params) const { Nico is right that ...
8 years, 3 months ago (2012-09-04 21:11:05 UTC) #34
szager1
On 2012/09/04 21:08:13, Nico wrote: > http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc > File chrome/browser/profiles/profile_io_data.cc (right): > > http://codereview.chromium.org/10834215/diff/30003/chrome/browser/profiles/profile_io_data.cc#newcode657 > ...
8 years, 3 months ago (2012-09-04 22:45:26 UTC) #35
Nico
chrome/ lgtm
8 years, 3 months ago (2012-09-04 23:01:48 UTC) #36
mmenke
On 2012/09/04 23:01:48, Nico wrote: > chrome/ lgtm net/ LGTM
8 years, 3 months ago (2012-09-05 17:34:01 UTC) #37
jamesr
webkit/ lgtm
8 years, 3 months ago (2012-09-05 18:21:58 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szager@chromium.org/10834215/39002
8 years, 3 months ago (2012-09-05 18:55:59 UTC) #39
commit-bot: I haz the power
Presubmit check for 10834215-39002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-05 18:56:11 UTC) #40
szager1
Adding jochen for content/shell.
8 years, 3 months ago (2012-09-05 19:13:42 UTC) #41
jochen (gone - plz use gerrit)
lgtm
8 years, 3 months ago (2012-09-05 19:16:23 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szager@chromium.org/10834215/39002
8 years, 3 months ago (2012-09-05 20:57:27 UTC) #43
commit-bot: I haz the power
Try job failure for 10834215-39002 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 3 months ago (2012-09-05 21:25:29 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szager@chromium.org/10834215/31007
8 years, 3 months ago (2012-09-07 18:11:56 UTC) #45
commit-bot: I haz the power
Try job failure for 10834215-31007 (retry) on linux_clang for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-07 18:26:36 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szager@chromium.org/10834215/37008
8 years, 3 months ago (2012-09-07 18:28:39 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szager@chromium.org/10834215/40006
8 years, 3 months ago (2012-09-07 18:54:25 UTC) #48
commit-bot: I haz the power
8 years, 3 months ago (2012-09-07 21:27:37 UTC) #49
Change committed as 155485

Powered by Google App Engine
This is Rietveld 408576698