This source file includes following definitions.
- request_
- GetTimestamp
- GetType
- GetDetails
- GetProtoMessage
- Clone
#include "sync/internal_api/public/events/poll_get_updates_request_event.h"
#include "sync/protocol/proto_value_conversions.h"
namespace syncer {
PollGetUpdatesRequestEvent::PollGetUpdatesRequestEvent(
base::Time timestamp,
const sync_pb::ClientToServerMessage& request)
: timestamp_(timestamp),
request_(request) { }
PollGetUpdatesRequestEvent::~PollGetUpdatesRequestEvent() {}
base::Time PollGetUpdatesRequestEvent::GetTimestamp() const {
return timestamp_;
}
std::string PollGetUpdatesRequestEvent::GetType() const {
return "Poll GetUpdate request";
}
std::string PollGetUpdatesRequestEvent::GetDetails() const {
return std::string();
}
scoped_ptr<base::DictionaryValue>
PollGetUpdatesRequestEvent::GetProtoMessage() const {
return scoped_ptr<base::DictionaryValue>(
ClientToServerMessageToValue(request_, false));
}
scoped_ptr<ProtocolEvent> PollGetUpdatesRequestEvent::Clone() const {
return scoped_ptr<ProtocolEvent>(
new PollGetUpdatesRequestEvent(
timestamp_,
request_));
}
}