#include "chrome/browser/notifications/scheduler/internal/proto_conversion.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
namespace notifications {
namespace {
int64_t TimeDeltaToMilliseconds(const base::TimeDelta& delta) { … }
base::TimeDelta MillisecondsToTimeDelta(int64_t serialized_delat_ms) { … }
int64_t TimeToMilliseconds(const base::Time& time) { … }
base::Time MillisecondsToTime(int64_t serialized_time_ms) { … }
proto::SchedulerClientType ToSchedulerClientType(SchedulerClientType type) { … }
SchedulerClientType FromSchedulerClientType(
proto::SchedulerClientType proto_type) { … }
proto::Impression_UserFeedback ToUserFeedback(UserFeedback feedback) { … }
UserFeedback FromUserFeedback(proto::Impression_UserFeedback feedback) { … }
proto::Impression_ImpressionResult ToImpressionResult(ImpressionResult result) { … }
ImpressionResult FromImpressionResult(
proto::Impression_ImpressionResult result) { … }
proto::IconType ToIconType(IconType type) { … }
IconType FromIconType(proto::IconType proto_type) { … }
proto::ActionButtonType ToActionButtonType(ActionButtonType type) { … }
ActionButtonType FromActionButtonType(proto::ActionButtonType proto_type) { … }
void NotificationDataToProto(NotificationData* notification_data,
proto::NotificationData* proto) { … }
void NotificationDataFromProto(proto::NotificationData* proto,
NotificationData* notification_data) { … }
proto::ScheduleParams_Priority ScheduleParamsPriorityToProto(
ScheduleParams::Priority priority) { … }
ScheduleParams::Priority ScheduleParamsPriorityFromProto(
proto::ScheduleParams_Priority priority) { … }
void ScheduleParamsToProto(ScheduleParams* params,
proto::ScheduleParams* proto) { … }
void ScheduleParamsFromProto(proto::ScheduleParams* proto,
ScheduleParams* params) { … }
}
void IconEntryToProto(IconEntry* entry, notifications::proto::Icon* proto) { … }
void IconEntryFromProto(proto::Icon* proto, notifications::IconEntry* entry) { … }
void ClientStateToProto(ClientState* client_state,
notifications::proto::ClientState* proto) { … }
void ClientStateFromProto(proto::ClientState* proto,
notifications::ClientState* client_state) { … }
void NotificationEntryToProto(NotificationEntry* entry,
proto::NotificationEntry* proto) { … }
void NotificationEntryFromProto(proto::NotificationEntry* proto,
NotificationEntry* entry) { … }
}