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 b1a079a532455edb3915f834832f4a6be612410f..eea07d5a30c7967b540a29031b5282aec9963b29 100644 |
--- a/chrome/browser/net/passive_log_collector.h |
+++ b/chrome/browser/net/passive_log_collector.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -430,6 +430,21 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserverImpl { |
DISALLOW_COPY_AND_ASSIGN(HttpPipelinedConnectionTracker); |
}; |
+ // Tracks the log entries for the last seen SOURCE_FILESTREAM. |
+ class FileStreamTracker : public SourceTracker { |
+ public: |
+ static const size_t kMaxNumSources; |
+ static const size_t kMaxGraveyardSize; |
+ |
+ FileStreamTracker(); |
+ |
+ private: |
+ virtual Action DoAddEntry(const ChromeNetLog::Entry& entry, |
+ SourceInfo* out_info) OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(FileStreamTracker); |
+ }; |
+ |
PassiveLogCollector(); |
virtual ~PassiveLogCollector(); |
@@ -475,6 +490,7 @@ class PassiveLogCollector : public ChromeNetLog::ThreadSafeObserverImpl { |
UDPSocketTracker udp_socket_tracker_; |
CertVerifierJobTracker cert_verifier_job_tracker_; |
HttpPipelinedConnectionTracker http_pipelined_connection_tracker_; |
+ FileStreamTracker file_stream_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 |