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

Unified Diff: chrome/browser/net/passive_log_collector.h

Issue 9223019: Added net logging to BaseFile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor cleanup Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/passive_log_collector.h
diff --git a/chrome/browser/net/passive_log_collector.h b/chrome/browser/net/passive_log_collector.h
index c3b8da5860e5d460d5b4a87f7d616f6e56ec89e9..701c5c38a55c2e913f69cfd07e474614b36f2ef3 100644
--- a/chrome/browser/net/passive_log_collector.h
+++ b/chrome/browser/net/passive_log_collector.h
@@ -446,6 +446,21 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserverImpl {
DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionTracker);
};
+ // Tracks the log entries for the last seen SOURCE_DOWNLOAD.
+ class DownloadTracker : public SourceTracker {
+ public:
+ static const size_t kMaxNumSources;
+ static const size_t kMaxGraveyardSize;
+
+ DownloadTracker();
+
+ private:
+ virtual Action DoAddEntry(const ChromeNetLog::Entry& entry,
+ SourceInfo* out_info) OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(DownloadTracker);
+ };
+
// Tracks the log entries for the last seen SOURCE_FILESTREAM.
class FileStreamTracker : public SourceTracker {
public:
@@ -507,6 +522,7 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserverImpl {
UDPSocketTracker udp_socket_tracker_;
CertVerifierJobTracker cert_verifier_job_tracker_;
HttpPipelinedConnectionTracker http_pipelined_connection_tracker_;
+ DownloadTracker download_tracker_;
FileStreamTracker file_stream_tracker_;
// This array maps each NetLog::SourceType to one of the tracker instances
« no previous file with comments | « no previous file | chrome/browser/net/passive_log_collector.cc » ('j') | chrome/browser/net/passive_log_collector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698