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

Issue 10831277: [net] Change factory methods for HostResolver and HostCache to return a scoped_ptr (Closed)

Created:
8 years, 4 months ago by szym
Modified:
8 years, 2 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, cbentzel+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, jam, garykac+watch_chromium.org, joi+watch-content_chromium.org, lambroslambrou+watch_chromium.org, darin-cc_chromium.org, pam+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org, mmenke
Visibility:
Public.

Description

[net] Change factory methods for HostResolver and HostCache to return a scoped_ptr. Move HostResolver factory methods to host_resolver.cc. This also fixes a double-free in ShellURLRequestContextGetter. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=163402

Patch Set 1 #

Patch Set 2 : moved factory methods to host_resolver.cc #

Patch Set 3 : add ChromeBrowserFieldTrials::AsyncDnsFieldTrial #

Total comments: 5

Patch Set 4 : Remove FieldTrials #

Total comments: 1

Patch Set 5 : convert URLRequestContextStorage::set_host_resolver to accept scoped_ptr #

Patch Set 6 : changes to jingle #

Patch Set 7 : sync #

Patch Set 8 : fix sync #

Patch Set 9 : sync #

Total comments: 20

Patch Set 10 : sync #

Patch Set 11 : responded to darin #

Patch Set 12 : Fix double-free in ShellURLRequestContextGetter #

Patch Set 13 : use default scoped_ptr() instead of scoped_ptr(NULL) #

Total comments: 5

Patch Set 14 : sync #

Patch Set 15 : remove unnecessary initialization; respond to review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -247 lines) Patch
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +15 lines, -25 lines 0 comments Download
M chrome/browser/net/connection_tester.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +15 lines, -12 lines 0 comments Download
M chrome/service/net/service_url_request_context.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -4 lines 0 comments Download
M content/shell/shell_url_request_context_getter.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/shell_url_request_context_getter.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +13 lines, -12 lines 0 comments Download
M jingle/notifier/communicator/single_login_attempt_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M net/base/host_cache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M net/base/host_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/host_resolver.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +31 lines, -35 lines 0 comments Download
M net/base/host_resolver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +58 lines, -0 lines 0 comments Download
M net/base/host_resolver_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -72 lines 0 comments Download
M net/base/host_resolver_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +5 lines, -5 lines 0 comments Download
M net/base/mapped_host_resolver.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/mapped_host_resolver.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/base/mapped_host_resolver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +8 lines, -7 lines 0 comments Download
M net/curvecp/test_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/proxy_script_fetcher_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_test_util_spdy2.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M net/spdy/spdy_test_util_spdy3.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M net/test/base_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -4 lines 0 comments Download
M net/tools/fetch/fetch_client.cc View 1 chunk +1 line, -4 lines 0 comments Download
M net/url_request/url_request_context_builder.h View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -19 lines 0 comments Download
M net/url_request/url_request_context_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -13 lines 0 comments Download
M net/url_request/url_request_context_storage.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_context_storage.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -1 line 0 comments Download
M remoting/host/url_request_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download
M sync/tools/sync_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -4 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell_request_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
szym
I have followed the pattern of Spdy field trial. I have not added field-trial-based histogram ...
8 years, 4 months ago (2012-08-16 16:23:44 UTC) #1
szym
On 2012/08/16 16:23:44, szym wrote: > I have followed the pattern of Spdy field trial. ...
8 years, 4 months ago (2012-08-16 16:25:26 UTC) #2
Jamie
remoting/ lgtm.
8 years, 4 months ago (2012-08-16 16:40:04 UTC) #3
cbentzel
Some quick comments. I'll do a full pass before I take off today. http://codereview.chromium.org/10831277/diff/7003/chrome/browser/chrome_browser_field_trials.cc File ...
8 years, 4 months ago (2012-08-16 20:09:20 UTC) #4
szym
http://codereview.chromium.org/10831277/diff/7003/chrome/browser/chrome_browser_field_trials.cc File chrome/browser/chrome_browser_field_trials.cc (right): http://codereview.chromium.org/10831277/diff/7003/chrome/browser/chrome_browser_field_trials.cc#newcode587 chrome/browser/chrome_browser_field_trials.cc:587: // When --enable-async-dns is not set, users will be ...
8 years, 4 months ago (2012-08-16 20:38:54 UTC) #5
cbentzel
http://codereview.chromium.org/10831277/diff/7003/chrome/service/net/service_url_request_context.cc File chrome/service/net/service_url_request_context.cc (right): http://codereview.chromium.org/10831277/diff/7003/chrome/service/net/service_url_request_context.cc#newcode112 chrome/service/net/service_url_request_context.cc:112: storage_.set_host_resolver( On 2012/08/16 20:38:55, szym wrote: > On 2012/08/16 ...
8 years, 4 months ago (2012-08-16 21:20:26 UTC) #6
cbentzel
L G T M with one question below. http://codereview.chromium.org/10831277/diff/15001/net/base/host_resolver.cc File net/base/host_resolver.cc (right): http://codereview.chromium.org/10831277/diff/15001/net/base/host_resolver.cc#newcode53 net/base/host_resolver.cc:53: HostResolver::CreateSystemResolver(size_t ...
8 years, 4 months ago (2012-08-17 13:41:52 UTC) #7
szym
Right, this brings in a number of headers into this file. I have no strong ...
8 years, 4 months ago (2012-08-17 15:03:30 UTC) #8
cbentzel
On 2012/08/17 15:03:30, szym wrote: > Right, this brings in a number of headers into ...
8 years, 4 months ago (2012-08-17 17:59:15 UTC) #9
szym
Thanks for the review. I still plan to change URLRequestContext{Storage,Builder}::set_host_resolver to accept scoped_ptr<HostResolver> before asking ...
8 years, 4 months ago (2012-08-17 18:44:03 UTC) #10
szym
brettw: please approve changes in chrome/ content/ and webkit/ akalin: please approve changes in sync/
8 years, 4 months ago (2012-08-20 20:58:10 UTC) #11
akalin
sync lgtm
8 years, 4 months ago (2012-08-20 21:01:13 UTC) #12
szym
brettw: ping
8 years, 3 months ago (2012-08-27 21:03:45 UTC) #13
brettw
overloaded, please find another reviewer
8 years, 3 months ago (2012-08-29 06:57:30 UTC) #14
akalin
On 2012/08/29 06:57:30, brettw wrote: > overloaded, please find another reviewer will this be checked ...
8 years, 2 months ago (2012-09-25 21:31:04 UTC) #15
szym
On 2012/09/25 21:31:04, akalin wrote: > On 2012/08/29 06:57:30, brettw wrote: > > overloaded, please ...
8 years, 2 months ago (2012-09-25 21:32:45 UTC) #16
szym
darin: OWNER approval requested for chrome/, content/ and webkit/ PTAL
8 years, 2 months ago (2012-09-27 15:44:20 UTC) #17
szym
On 2012/09/27 15:44:20, szym wrote: > darin: OWNER approval requested for chrome/, content/ and webkit/ ...
8 years, 2 months ago (2012-10-08 20:18:43 UTC) #18
darin (slow to review)
http://codereview.chromium.org/10831277/diff/37009/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/10831277/diff/37009/chrome/browser/io_thread.cc#newcode164 chrome/browser/io_thread.cc:164: true /* use_cache */, I'm not a big fan ...
8 years, 2 months ago (2012-10-09 17:38:34 UTC) #19
szym
http://codereview.chromium.org/10831277/diff/37009/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/10831277/diff/37009/chrome/browser/io_thread.cc#newcode164 chrome/browser/io_thread.cc:164: true /* use_cache */, On 2012/10/09 17:38:34, darin wrote: ...
8 years, 2 months ago (2012-10-09 21:40:42 UTC) #20
szym
jam: please review changes in content/shell As explained in https://chromiumcodereview.appspot.com/11053007/, the current code causes double-free.
8 years, 2 months ago (2012-10-10 18:45:40 UTC) #21
szym
jam: please review changes in content/shell As explained in https://chromiumcodereview.appspot.com/11053007/, the current code causes double-free.
8 years, 2 months ago (2012-10-10 18:46:10 UTC) #22
jam
content lgtm
8 years, 2 months ago (2012-10-10 20:12:46 UTC) #23
szym
darin: ping
8 years, 2 months ago (2012-10-11 21:29:44 UTC) #24
szym
On 2012/10/11 21:29:44, szym wrote: > darin: ping darin: please review.
8 years, 2 months ago (2012-10-22 16:36:55 UTC) #25
darin (slow to review)
Sorry, I failed to publish these comments back when I wrote them :-( http://codereview.chromium.org/10831277/diff/52004/chrome/browser/io_thread.cc File ...
8 years, 2 months ago (2012-10-22 17:27:17 UTC) #26
szym
http://codereview.chromium.org/10831277/diff/52004/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): http://codereview.chromium.org/10831277/diff/52004/chrome/browser/io_thread.cc#newcode126 chrome/browser/io_thread.cc:126: options.max_concurrent_resolves = net::HostResolver::kDefaultParallelism; On 2012/10/22 17:27:17, darin wrote: > ...
8 years, 2 months ago (2012-10-22 17:48:42 UTC) #27
darin (slow to review)
LGTM
8 years, 2 months ago (2012-10-22 17:54:16 UTC) #28
commit-bot: I haz the power
8 years, 2 months ago (2012-10-22 20:05:11 UTC) #29

Powered by Google App Engine
This is Rietveld 408576698