diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 16:38:00 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 16:38:00 +0000 |
commit | 95d9c653d112f60af86b01614ebe9beafe4b4335 (patch) | |
tree | 625b5556565600f1b0c8207aa09aad5c47e586d7 /chrome/browser/net/passive_log_collector.h | |
parent | 1455ccf1ccef30ffc77f44ce34edd92e1faf9383 (diff) | |
download | chromium_src-95d9c653d112f60af86b01614ebe9beafe4b4335.zip chromium_src-95d9c653d112f60af86b01614ebe9beafe4b4335.tar.gz chromium_src-95d9c653d112f60af86b01614ebe9beafe4b4335.tar.bz2 |
Added HostResolveImpl Requests and Jobs to log.
ConnectJobs point to the requests, Requests point back to ConnectJobs and to the DNS lookup they were attached to, if any.
Also CONNECT_JOBs are now identified by their host/port on the Requests list.
BUG= 46844
TEST= Look at the net-internals screen.
Review URL: http://codereview.chromium.org/3080034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56539 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/passive_log_collector.h')
-rw-r--r-- | chrome/browser/net/passive_log_collector.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome/browser/net/passive_log_collector.h b/chrome/browser/net/passive_log_collector.h index e7d741f..8ffd459 100644 --- a/chrome/browser/net/passive_log_collector.h +++ b/chrome/browser/net/passive_log_collector.h @@ -283,6 +283,36 @@ class PassiveLogCollector : public ChromeNetLog::Observer { DISALLOW_COPY_AND_ASSIGN(SpdySessionTracker); }; + // Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_REQUEST. + class DNSRequestTracker : public SourceTracker { + public: + static const size_t kMaxNumSources; + static const size_t kMaxGraveyardSize; + + DNSRequestTracker(); + + protected: + virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); + + private: + DISALLOW_COPY_AND_ASSIGN(DNSRequestTracker); + }; + + // Tracks the log entries for the last seen SOURCE_HOST_RESOLVER_IMPL_JOB. + class DNSJobTracker : public SourceTracker { + public: + static const size_t kMaxNumSources; + static const size_t kMaxGraveyardSize; + + DNSJobTracker(); + + protected: + virtual Action DoAddEntry(const Entry& entry, SourceInfo* out_info); + + private: + DISALLOW_COPY_AND_ASSIGN(DNSJobTracker); + }; + PassiveLogCollector(); ~PassiveLogCollector(); @@ -317,6 +347,8 @@ class PassiveLogCollector : public ChromeNetLog::Observer { RequestTracker socket_stream_tracker_; InitProxyResolverTracker init_proxy_resolver_tracker_; SpdySessionTracker spdy_session_tracker_; + DNSRequestTracker dns_request_tracker_; + DNSJobTracker dns_job_tracker_; // This array maps each NetLog::SourceType to one of the tracker instances // defined above. Use of this array avoid duplicating the list of trackers |