| Index: extensions/browser/api/cast_channel/logger.h
|
| diff --git a/extensions/browser/api/cast_channel/logger.h b/extensions/browser/api/cast_channel/logger.h
|
| index 4bbe5ce822928f04135ea95ac927c42c7102f42a..e7e22ac84a740ba9f573a42249c63603a6fb1be5 100644
|
| --- a/extensions/browser/api/cast_channel/logger.h
|
| +++ b/extensions/browser/api/cast_channel/logger.h
|
| @@ -117,18 +117,17 @@ class Logger : public base::RefCounted<Logger> {
|
| // Records |event| associated with |channel_id|.
|
| // If the internal map is already logging maximum number of sockets and this
|
| // is a new socket, the socket with the smallest channel id will be discarded.
|
| - // Returns a pointer to the Event proto with |event_type| and
|
| - // timestamp populated.
|
| - void LogSocketEvent(int channel_id, const proto::SocketEvent& socket_event);
|
| + // Returns a reference to the AggregatedSocketEvent proto created/modified.
|
| + proto::AggregatedSocketEvent& LogSocketEvent(
|
| + int channel_id,
|
| + const proto::SocketEvent& socket_event);
|
|
|
| scoped_ptr<base::TickClock> clock_;
|
| AggregatedSocketEventLogMap aggregated_socket_events_;
|
| base::TimeTicks unix_epoch_time_ticks_;
|
|
|
| - // Number of socket / event entries evicted by the logger due to size
|
| - // constraints.
|
| - int num_evicted_aggregated_socket_events_;
|
| - int num_evicted_socket_events_;
|
| + // Log proto holding global statistics.
|
| + proto::Log log_;
|
|
|
| base::ThreadChecker thread_checker_;
|
|
|
|
|