Chromium Code Reviews

Issue 126303: Add a "LoadLog*" parameter to transactions, hostresolver, clientsocketpool. (Closed)

Created:
11 years, 6 months ago by eroman
Modified:
9 years, 6 months ago
Reviewers:
darin (slow to review), willchan no longer on Chromium
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add a "LoadLog" parameter to transactions, hostresolver, clientsocketpool and proyxservice.This dependency comes from the parent URLRequest, and is used as a container for per-request profiling data.This change is strictly a no-op refactor -- the parameter is unused, and LoadLog does nothing.BUG=http://crbug.com/14478TEST=none -- just needs to compile and pass existing tests.DESIGN=<http://docs.google.com/Doc?id=dfhcnb2v_21gbtrcpr3&hl=en> Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23127

Patch Set 1 #

Patch Set 2 : add missing file #

Patch Set 3 : re-order #

Patch Set 4 : Add dns_master.cc to CL #

Patch Set 5 : Add proxy service to the mix #

Patch Set 6 : Sync to latest #

Patch Set 7 : add another missing file #

Patch Set 8 : Rename LoadContext --> LoadInformation #

Patch Set 9 : Re-order some header files because of new name #

Patch Set 10 : Sync to latest and resolve conflicts #

Patch Set 11 : More merge resolves #

Total comments: 7

Patch Set 12 : sync + make refcounted + rename to LoadLog #

Patch Set 13 : Add some extra documentation #

Total comments: 3

Patch Set 14 : Sync (ouch) and make the LoadLog parameter optionally nullable #

Patch Set 15 : Another removal of unused_log #

Total comments: 2

Patch Set 16 : Fix comment typo #

Patch Set 17 : sync again #

Unified diffs Side-by-side diffs Stats (+436 lines, -311 lines)
M chrome/browser/net/dns_master.cc View 1 chunk +2 lines, -1 line 0 comments
M chrome/browser/net/dns_master_unittest.cc View 1 chunk +1 line, -1 line 0 comments
M chrome/browser/net/resolve_proxy_msg_helper.h View 1 chunk +1 line, -2 lines 0 comments
M chrome/browser/net/resolve_proxy_msg_helper.cc View 1 chunk +1 line, -1 line 0 comments
M net/base/host_resolver.h View 3 chunks +12 lines, -4 lines 0 comments
M net/base/host_resolver.cc View 2 chunks +4 lines, -2 lines 0 comments
M net/base/host_resolver_impl.h View 1 chunk +5 lines, -2 lines 0 comments
M net/base/host_resolver_impl.cc View 1 chunk +2 lines, -1 line 0 comments
M net/base/host_resolver_impl_unittest.cc View 15 chunks +15 lines, -15 lines 0 comments
net/base/load_log.h View 1 chunk +24 lines, -0 lines 0 comments
M net/base/mock_host_resolver.h View 1 chunk +5 lines, -2 lines 0 comments
M net/base/mock_host_resolver.cc View 2 chunks +3 lines, -2 lines 0 comments
M net/ftp/ftp_network_transaction.h View 2 chunks +3 lines, -1 line 0 comments
M net/ftp/ftp_network_transaction.cc View 4 chunks +6 lines, -3 lines 0 comments
M net/ftp/ftp_network_transaction_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments
M net/ftp/ftp_transaction.h View 2 chunks +4 lines, -1 line 0 comments
M net/http/http_cache.cc View 7 chunks +10 lines, -6 lines 0 comments
M net/http/http_cache_unittest.cc View 12 chunks +14 lines, -14 lines 0 comments
M net/http/http_network_layer_unittest.cc View 1 chunk +1 line, -1 line 0 comments
M net/http/http_network_transaction.h View 2 chunks +3 lines, -1 line 0 comments
M net/http/http_network_transaction.cc View 4 chunks +7 lines, -5 lines 0 comments
M net/http/http_network_transaction_unittest.cc View 48 chunks +51 lines, -49 lines 0 comments
M net/http/http_transaction.h View 2 chunks +4 lines, -1 line 0 comments
M net/http/http_transaction_unittest.h View 2 chunks +4 lines, -3 lines 0 comments
M net/net.gyp View 1 chunk +1 line, -0 lines 0 comments
M net/proxy/proxy_resolver_js_bindings.cc View 2 chunks +3 lines, -2 lines 0 comments
M net/proxy/proxy_service.h View 4 chunks +14 lines, -6 lines 0 comments
M net/proxy/proxy_service.cc View 6 chunks +19 lines, -12 lines 0 comments
M net/proxy/proxy_service_unittest.cc View 58 chunks +71 lines, -70 lines 0 comments
M net/socket/client_socket_handle.h View 1 chunk +3 lines, -1 line 0 comments
M net/socket/client_socket_handle.cc View 2 chunks +3 lines, -2 lines 0 comments
net/socket/client_socket_pool.h View 1 chunk +3 lines, -1 line 0 comments
M net/socket/client_socket_pool_base.h View 3 chunks +8 lines, -4 lines 0 comments
M net/socket/client_socket_pool_base.cc View 4 chunks +4 lines, -3 lines 0 comments
M net/socket/client_socket_pool_base_unittest.cc View 35 chunks +65 lines, -52 lines 0 comments
M net/socket/socket_test_util.cc View 1 chunk +2 lines, -2 lines 0 comments
M net/socket/socks5_client_socket.cc View 1 chunk +2 lines, -1 line 0 comments
M net/socket/socks5_client_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments
M net/socket/socks_client_socket.cc View 1 chunk +2 lines, -1 line 0 comments
M net/socket/socks_client_socket_unittest.cc View 1 chunk +0 lines, -1 line 0 comments
M net/socket/ssl_client_socket_unittest.cc View 6 chunks +6 lines, -6 lines 0 comments
M net/socket/ssl_test_util.cc View 1 chunk +1 line, -1 line 0 comments
M net/socket/tcp_client_socket_pool.h View 1 chunk +2 lines, -1 line 0 comments
M net/socket/tcp_client_socket_pool.cc View 2 chunks +3 lines, -2 lines 0 comments
M net/socket/tcp_client_socket_pool_unittest.cc View 8 chunks +15 lines, -13 lines 0 comments
M net/socket/tcp_client_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments
M net/socket/tcp_pinger_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments
M net/tools/fetch/fetch_client.cc View 1 chunk +2 lines, -1 line 0 comments
M net/url_request/url_request.h View 3 chunks +9 lines, -1 line 0 comments
M net/url_request/url_request.cc View 2 chunks +3 lines, -1 line 0 comments
M net/url_request/url_request_http_job.cc View 1 chunk +2 lines, -1 line 0 comments
M net/url_request/url_request_new_ftp_job.cc View 1 chunk +2 lines, -1 line 0 comments
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 chunk +1 line, -1 line 0 comments

Messages

Total messages: 17 (0 generated)
eroman
11 years, 6 months ago (2009-06-17 23:41:51 UTC) #1
eroman
Amended the description: -This dependency comes from the parent URLRequestContext +This dependency comes from the ...
11 years, 6 months ago (2009-06-17 23:44:11 UTC) #2
eroman
Also: -the parameter is used ... +the parameter is unused ... (published before re-reading the ...
11 years, 6 months ago (2009-06-17 23:46:23 UTC) #3
eroman
ping.
11 years, 6 months ago (2009-06-23 04:33:41 UTC) #4
darin (slow to review)
This is a lot of plumbing... As I was reading this over, it occurred to ...
11 years, 6 months ago (2009-06-23 20:02:01 UTC) #5
eroman
> As I was reading this over, it occurred to me that LoadMetrics might > ...
11 years, 6 months ago (2009-06-25 17:12:05 UTC) #6
darin (slow to review)
Oh yeah... LoadStates... I guess LoadInformation (or LoadInfo) is fine then. http://codereview.chromium.org/126303/diff/2363/2379 File net/url_request/url_request.h (right): ...
11 years, 6 months ago (2009-06-25 18:47:15 UTC) #7
darin (slow to review)
Or.. maybe LoadLog, LoadJournal, LoadActivityLog.. ugh
11 years, 6 months ago (2009-06-25 18:48:01 UTC) #8
eroman
Sorry for the delay; I got pre-empted by more important stuff. Note that I have ...
11 years, 5 months ago (2009-07-09 20:50:06 UTC) #9
darin (slow to review)
http://codereview.chromium.org/126303/diff/8064/7090 File chrome/browser/net/dns_master.cc (right): http://codereview.chromium.org/126303/diff/8064/7090#newcode54 Line 54: unused_log, resolve_info, &addresses_, &net_callback_); API-wise, it sure would ...
11 years, 4 months ago (2009-08-11 16:41:50 UTC) #10
eroman
http://codereview.chromium.org/126303/diff/8064/7090 File chrome/browser/net/dns_master.cc (right): http://codereview.chromium.org/126303/diff/8064/7090#newcode54 Line 54: unused_log, resolve_info, &addresses_, &net_callback_); On 2009/08/11 16:41:50, darin ...
11 years, 4 months ago (2009-08-11 22:55:47 UTC) #11
darin (slow to review)
LGTM http://codereview.chromium.org/126303/diff/9028/10163 File net/base/load_log.h (right): http://codereview.chromium.org/126303/diff/9028/10163#newcode12 Line 12: // LoadLog stores profiling information no where ...
11 years, 4 months ago (2009-08-11 23:08:48 UTC) #12
eroman
http://codereview.chromium.org/126303/diff/9028/10163 File net/base/load_log.h (right): http://codereview.chromium.org/126303/diff/9028/10163#newcode12 Line 12: // LoadLog stores profiling information no where time ...
11 years, 4 months ago (2009-08-11 23:19:54 UTC) #13
darin (slow to review)
Makes sense, LGTM On Tue, Aug 11, 2009 at 4:19 PM, <eroman@chromium.org> wrote: > > ...
11 years, 4 months ago (2009-08-11 23:36:27 UTC) #14
willchan no longer on Chromium
I'm merging this into one of my changelists right now and wanted to check something. ...
11 years, 4 months ago (2009-08-13 20:34:37 UTC) #15
eroman
> I'm wondering whether or not to fix up the code I'm merging > now, ...
11 years, 4 months ago (2009-08-13 20:46:28 UTC) #16
willchan no longer on Chromium
11 years, 4 months ago (2009-08-13 21:03:54 UTC) #17
On Thu, Aug 13, 2009 at 1:46 PM, <eroman@chromium.org> wrote:
>
>> I'm wondering whether or not to fix up the code I'm merging
>> now, or just let it be. =A0If people agree with my assessment,
>> then I'll go ahead and fix all the ClientSocketPool*
>> function parameter orderings.
>
> Moving the parameter is fine by me.
>
> If you do move it, can you make it be the very last parameter
> everywhere? (My hope is to to have a consistent convention on where in
> the parameter list the LoadLog* is given).
>
> Fixes to my style are appreciated.

Sure thing.

>
> http://codereview.chromium.org/126303
>

Powered by Google App Engine