diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-28 22:25:59 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-28 22:25:59 +0000 |
commit | 7b496b3cc7299672eaeff93fba4a444576c60214 (patch) | |
tree | cf178fa966eff186b2918b40fc1ddb9d038287ac /chrome/browser/net/passive_log_collector.h | |
parent | 5d97aa4302484c9fd7b78395f30dd4b063731861 (diff) | |
download | chromium_src-7b496b3cc7299672eaeff93fba4a444576c60214.zip chromium_src-7b496b3cc7299672eaeff93fba4a444576c60214.tar.gz chromium_src-7b496b3cc7299672eaeff93fba4a444576c60214.tar.bz2 |
Update NetLog in preparation for late binding of HttpStream jobs to requests.
BUG=54371,42669
TEST=Open up about:net-internals#Events and make sure HTTP_STREAM_JOBs appear and are tied together to URL_REQUESTs.
Review URL: http://codereview.chromium.org/6592027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76287 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 | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/chrome/browser/net/passive_log_collector.h b/chrome/browser/net/passive_log_collector.h index a415d59..6c39ae9 100644 --- a/chrome/browser/net/passive_log_collector.h +++ b/chrome/browser/net/passive_log_collector.h @@ -200,10 +200,9 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { explicit ConnectJobTracker(PassiveLogCollector* parent); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(ConnectJobTracker); }; @@ -215,11 +214,10 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { SocketTracker(); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(SocketTracker); }; @@ -231,11 +229,10 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { explicit RequestTracker(PassiveLogCollector* parent); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(RequestTracker); }; @@ -248,11 +245,10 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { InitProxyResolverTracker(); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(InitProxyResolverTracker); }; @@ -264,11 +260,10 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { SpdySessionTracker(); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(SpdySessionTracker); }; @@ -280,11 +275,10 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { DNSRequestTracker(); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(DNSRequestTracker); }; @@ -296,11 +290,10 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { DNSJobTracker(); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(DNSJobTracker); }; @@ -312,14 +305,27 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { DiskCacheEntryTracker(); - protected: + private: virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, SourceInfo* out_info); - private: DISALLOW_COPY_AND_ASSIGN(DiskCacheEntryTracker); }; + class HttpStreamJobTracker : public SourceTracker { + public: + static const size_t kMaxNumSources; + static const size_t kMaxGraveyardSize; + + explicit HttpStreamJobTracker(PassiveLogCollector* parent); + + private: + virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, + SourceInfo* out_info); + DISALLOW_COPY_AND_ASSIGN(HttpStreamJobTracker); + }; + + PassiveLogCollector(); ~PassiveLogCollector(); @@ -357,6 +363,7 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserver { DNSRequestTracker dns_request_tracker_; DNSJobTracker dns_job_tracker_; DiskCacheEntryTracker disk_cache_entry_tracker_; + HttpStreamJobTracker http_stream_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 |