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

Side by Side Diff: components/gcm_driver/gcm_stats_recorder_android.h

Issue 2250263007: Pass incoming sender_id to GCMStatsRecorderAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_ANDROID_H_ 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_ANDROID_H_
6 #define COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_ANDROID_H_ 6 #define COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_ANDROID_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Records that an unregistration for |app_id| has been sent. 51 // Records that an unregistration for |app_id| has been sent.
52 void RecordUnregistrationSent(const std::string& app_id); 52 void RecordUnregistrationSent(const std::string& app_id);
53 53
54 // Records that the unregistration sent for |app_id| has received a response. 54 // Records that the unregistration sent for |app_id| has received a response.
55 // |success| indicates whether the unregistration was successful. 55 // |success| indicates whether the unregistration was successful.
56 void RecordUnregistrationResponse(const std::string& app_id, bool success); 56 void RecordUnregistrationResponse(const std::string& app_id, bool success);
57 57
58 // Records that a data message has been received for |app_id|. 58 // Records that a data message has been received for |app_id|.
59 void RecordDataMessageReceived(const std::string& app_id, 59 void RecordDataMessageReceived(const std::string& app_id,
60 const std::string& from,
60 int message_byte_size); 61 int message_byte_size);
61 62
62 // Records a message decryption failure caused by |result| for |app_id|. 63 // Records a message decryption failure caused by |result| for |app_id|.
63 void RecordDecryptionFailure(const std::string& app_id, 64 void RecordDecryptionFailure(const std::string& app_id,
64 GCMEncryptionProvider::DecryptionResult result); 65 GCMEncryptionProvider::DecryptionResult result);
65 66
66 bool is_recording() const { return is_recording_; } 67 bool is_recording() const { return is_recording_; }
67 void set_is_recording(bool recording) { is_recording_ = recording; } 68 void set_is_recording(bool recording) { is_recording_ = recording; }
68 69
69 private: 70 private:
(...skipping 15 matching lines...) Expand all
85 86
86 // Recorded message decryption failure activities. 87 // Recorded message decryption failure activities.
87 std::deque<DecryptionFailureActivity> decryption_failure_activities_; 88 std::deque<DecryptionFailureActivity> decryption_failure_activities_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(GCMStatsRecorderAndroid); 90 DISALLOW_COPY_AND_ASSIGN(GCMStatsRecorderAndroid);
90 }; 91 };
91 92
92 } // namespace gcm 93 } // namespace gcm
93 94
94 #endif // COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_ANDROID_H_ 95 #endif // COMPONENTS_GCM_DRIVER_GCM_STATS_RECORDER_ANDROID_H_
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_driver_android.cc ('k') | components/gcm_driver/gcm_stats_recorder_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698