Index: media/cast/logging/logging_stats.h |
diff --git a/media/cast/logging/logging_stats.h b/media/cast/logging/logging_stats.h |
deleted file mode 100644 |
index e04db8d96f3bed96cedb6a3cadebc4b087830ca6..0000000000000000000000000000000000000000 |
--- a/media/cast/logging/logging_stats.h |
+++ /dev/null |
@@ -1,84 +0,0 @@ |
-// Copyright 2013 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. |
- |
-#ifndef MEDIA_CAST_LOGGING_LOGGING_STATS_H_ |
-#define MEDIA_CAST_LOGGING_LOGGING_STATS_H_ |
- |
-#include "base/basictypes.h" |
-#include "base/memory/scoped_ptr.h" |
-#include "base/time/time.h" |
-#include "media/cast/logging/logging_defines.h" |
- |
-namespace base { |
-class DictionaryValue; |
-} |
- |
-namespace media { |
-namespace cast { |
- |
-class LoggingStats { |
- public: |
- LoggingStats(); |
- ~LoggingStats(); |
- |
- void Reset(); |
- |
- void InsertFrameEvent(const base::TimeTicks& time_of_event, |
- CastLoggingEvent event, |
- uint32 rtp_timestamp, |
- uint32 frame_id); |
- |
- void InsertFrameEventWithSize(const base::TimeTicks& time_of_event, |
- CastLoggingEvent event, |
- uint32 rtp_timestamp, |
- uint32 frame_id, |
- int frame_size); |
- |
- void InsertFrameEventWithDelay(const base::TimeTicks& time_of_event, |
- CastLoggingEvent event, |
- uint32 rtp_timestamp, |
- uint32 frame_id, |
- base::TimeDelta delay); |
- |
- void InsertPacketEvent(const base::TimeTicks& time_of_event, |
- CastLoggingEvent event, |
- uint32 rtp_timestamp, |
- uint32 frame_id, |
- uint16 packet_id, |
- uint16 max_packet_id, |
- size_t size); |
- |
- void InsertGenericEvent(const base::TimeTicks& time_of_event, |
- CastLoggingEvent event, int value); |
- |
- FrameStatsMap GetFrameStatsData(EventMediaType media_type) const; |
- |
- PacketStatsMap GetPacketStatsData(EventMediaType media_type) const; |
- |
- GenericStatsMap GetGenericStatsData() const; |
- |
- private: |
- void InsertBaseFrameEvent(const base::TimeTicks& time_of_event, |
- CastLoggingEvent event, |
- uint32 frame_id, |
- uint32 rtp_timestamp); |
- |
- FrameStatsMap frame_stats_; |
- PacketStatsMap packet_stats_; |
- GenericStatsMap generic_stats_; |
- |
- DISALLOW_COPY_AND_ASSIGN(LoggingStats); |
-}; |
- |
-// Converts stats provided in |frame_stats_map| and |packet_stats_map| to |
-// base::DictionaryValue format. See .cc file for the exact structure. |
-scoped_ptr<base::DictionaryValue> ConvertStats( |
- const FrameStatsMap& frame_stats_map, |
- const PacketStatsMap& packet_stats_map); |
- |
-} // namespace cast |
-} // namespace media |
- |
-#endif // MEDIA_CAST_LOGGING_LOGGING_STATS_H_ |
- |