OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ACTIVITY_H_ | 5 #ifndef COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_ |
6 #define COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_ | 6 #define COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Contains relevant data of a send-message step. | 57 // Contains relevant data of a send-message step. |
58 struct SendingActivity : Activity { | 58 struct SendingActivity : Activity { |
59 SendingActivity(); | 59 SendingActivity(); |
60 ~SendingActivity() override; | 60 ~SendingActivity() override; |
61 | 61 |
62 std::string app_id; | 62 std::string app_id; |
63 std::string receiver_id; | 63 std::string receiver_id; |
64 std::string message_id; | 64 std::string message_id; |
65 }; | 65 }; |
66 | 66 |
| 67 // Contains relevant data of a message decryption failure. |
| 68 struct DecryptionFailureActivity : Activity { |
| 69 DecryptionFailureActivity(); |
| 70 ~DecryptionFailureActivity() override; |
| 71 |
| 72 std::string app_id; |
| 73 }; |
| 74 |
67 struct RecordedActivities { | 75 struct RecordedActivities { |
68 RecordedActivities(); | 76 RecordedActivities(); |
69 virtual ~RecordedActivities(); | 77 virtual ~RecordedActivities(); |
70 | 78 |
71 std::vector<CheckinActivity> checkin_activities; | 79 std::vector<CheckinActivity> checkin_activities; |
72 std::vector<ConnectionActivity> connection_activities; | 80 std::vector<ConnectionActivity> connection_activities; |
73 std::vector<RegistrationActivity> registration_activities; | 81 std::vector<RegistrationActivity> registration_activities; |
74 std::vector<ReceivingActivity> receiving_activities; | 82 std::vector<ReceivingActivity> receiving_activities; |
75 std::vector<SendingActivity> sending_activities; | 83 std::vector<SendingActivity> sending_activities; |
| 84 std::vector<DecryptionFailureActivity> decryption_failure_activities; |
76 }; | 85 }; |
77 | 86 |
78 } // namespace gcm | 87 } // namespace gcm |
79 | 88 |
80 #endif // COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_ | 89 #endif // COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_ |
OLD | NEW |