Add ability for NetLogLogger to gather data from more than just NetLog
commit853ed15d6d080b116bbc496de3302276f3668f1f
authormmenke <mmenke@chromium.org>
Mon, 16 Mar 2015 17:38:49 +0000 (16 10:38 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 Mar 2015 17:39:13 +0000 (16 17:39 +0000)
treead4c6072b616df6062359da554481de913c08a6e
parent109d025eefa2952f8294c93f407e3f283265b7c0
Add ability for NetLogLogger to gather data from more than just NetLog

This includes data from other net-internals tabs and from pending
URLRequests.  This also changes the semantices of NetLogLogger so
that it takes the input file in StartObserving and closes it in
StopObserving, to make thread restrictions when using the new
capability a little simpler.

This CL also fixes a number of cases where StopObserving either wasn't
being called, or was being called incorrectly by consumers.

BUG=426918

Review URL: https://codereview.chromium.org/976483002

Cr-Commit-Position: refs/heads/master@{#320745}
12 files changed:
chrome/browser/extensions/api/log_private/log_private_api.h
chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc
chrome/browser/net/chrome_net_log.cc
chrome/browser/net/net_log_temp_file.cc
chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc
components/cronet/android/cronet_url_request_context_adapter.cc
components/cronet/android/url_request_context_adapter.cc
content/shell/browser/shell_net_log.cc
google_apis/gcm/tools/mcs_probe.cc
net/base/net_log_logger.cc
net/base/net_log_logger.h
net/base/net_log_logger_unittest.cc