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

Unified Diff: media/cast/logging/stats_event_subscriber.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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: media/cast/logging/stats_event_subscriber.h
diff --git a/media/cast/logging/stats_event_subscriber.h b/media/cast/logging/stats_event_subscriber.h
index 36d5110777333216a09fc846c28f6fa81eb594b7..c1a1e19552810117512a1ea5897efbfaa5d6ba8f 100644
--- a/media/cast/logging/stats_event_subscriber.h
+++ b/media/cast/logging/stats_event_subscriber.h
@@ -90,20 +90,20 @@ class StatsEventSubscriber : public RawEventSubscriber {
// Overflow bucket: >= max
// |min| must be less than |max|.
// |width| must divide |max - min| evenly.
- SimpleHistogram(int64 min, int64 max, int64 width);
+ SimpleHistogram(int64_t min, int64_t max, int64_t width);
~SimpleHistogram();
- void Add(int64 sample);
+ void Add(int64_t sample);
void Reset();
scoped_ptr<base::ListValue> GetHistogram() const;
private:
- int64 min_;
- int64 max_;
- int64 width_;
+ int64_t min_;
+ int64_t max_;
+ int64_t width_;
std::vector<int> buckets_;
};
@@ -183,9 +183,8 @@ class StatsEventSubscriber : public RawEventSubscriber {
typedef std::map<CastStat, double> StatsMap;
typedef std::map<CastStat, linked_ptr<SimpleHistogram> > HistogramMap;
typedef std::map<RtpTimestamp, FrameInfo> FrameInfoMap;
- typedef std::map<
- std::pair<RtpTimestamp, uint16>,
- std::pair<base::TimeTicks, CastLoggingEvent> >
+ typedef std::map<std::pair<RtpTimestamp, uint16_t>,
+ std::pair<base::TimeTicks, CastLoggingEvent>>
PacketEventTimeMap;
typedef std::map<CastLoggingEvent, FrameLogStats> FrameStatsMap;
typedef std::map<CastLoggingEvent, PacketLogStats> PacketStatsMap;

Powered by Google App Engine
This is Rietveld 408576698