// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_ #define COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_ #include <string> #include <vector> #include "base/time/time.h" namespace gcm { // Contains data that are common to all activity kinds below. struct Activity { … }; // Contains relevant data of a connection activity. struct ConnectionActivity : Activity { … }; // Contains relevant data of a check-in activity. struct CheckinActivity : Activity { … }; // Contains relevant data of a registration/unregistration step. struct RegistrationActivity : Activity { … }; // Contains relevant data of a message receiving event. struct ReceivingActivity : Activity { … }; // Contains relevant data of a send-message step. struct SendingActivity : Activity { … }; // Contains relevant data of a message decryption failure. struct DecryptionFailureActivity : Activity { … }; struct RecordedActivities { … }; } // namespace gcm #endif // COMPONENTS_GCM_DRIVER_GCM_ACTIVITY_H_