| Index: google_apis/gcm/monitoring/gcm_stats_recorder.h
|
| diff --git a/google_apis/gcm/monitoring/gcm_stats_recorder.h b/google_apis/gcm/monitoring/gcm_stats_recorder.h
|
| index bc2afb228b233b3c46d1c89ff246a88b7875d029..ffee1aec1552692f285389a6ac759d3e145a9063 100644
|
| --- a/google_apis/gcm/monitoring/gcm_stats_recorder.h
|
| +++ b/google_apis/gcm/monitoring/gcm_stats_recorder.h
|
| @@ -95,15 +95,6 @@
|
| std::vector<GCMStatsRecorder::SendingActivity> sending_activities;
|
| };
|
|
|
| - // A delegate interface that allows the GCMStatsRecorder instance to interact
|
| - // with its container.
|
| - class Delegate {
|
| - public:
|
| - // Called when the GCMStatsRecorder is recording activities and a new
|
| - // activity has just been recorded.
|
| - virtual void OnActivityRecorded() = 0;
|
| - };
|
| -
|
| GCMStatsRecorder();
|
| virtual ~GCMStatsRecorder();
|
|
|
| @@ -114,9 +105,6 @@
|
|
|
| // Turns recording on/off.
|
| void SetRecording(bool recording);
|
| -
|
| - // Set a delegate to receive callback from the recorder.
|
| - void SetDelegate(Delegate* delegate);
|
|
|
| // Clear all recorded activities.
|
| void Clear();
|
| @@ -231,27 +219,19 @@
|
| }
|
|
|
| protected:
|
| - // Notify the recorder delegate, if it exists, that an activity has been
|
| - // recorded.
|
| - void NotifyActivityRecorded();
|
| -
|
| void RecordCheckin(const std::string& event,
|
| const std::string& details);
|
| -
|
| void RecordConnection(const std::string& event,
|
| const std::string& details);
|
| -
|
| void RecordRegistration(const std::string& app_id,
|
| const std::string& sender_id,
|
| const std::string& event,
|
| const std::string& details);
|
| -
|
| void RecordReceiving(const std::string& app_id,
|
| const std::string& from,
|
| int message_byte_size,
|
| const std::string& event,
|
| const std::string& details);
|
| -
|
| void RecordSending(const std::string& app_id,
|
| const std::string& receiver_id,
|
| const std::string& message_id,
|
| @@ -259,7 +239,6 @@
|
| const std::string& details);
|
|
|
| bool is_recording_;
|
| - Delegate* delegate_;
|
|
|
| std::deque<CheckinActivity> checkin_activities_;
|
| std::deque<ConnectionActivity> connection_activities_;
|
|
|