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
3 // found in the LICENSE file.
5 #include "sync/internal_api/public/events/poll_get_updates_request_event.h"
7 #include "sync/protocol/proto_value_conversions.h"
11 PollGetUpdatesRequestEvent::PollGetUpdatesRequestEvent(
13 const sync_pb::ClientToServerMessage
& request
)
14 : timestamp_(timestamp
),
17 PollGetUpdatesRequestEvent::~PollGetUpdatesRequestEvent() {}
19 base::Time
PollGetUpdatesRequestEvent::GetTimestamp() const {
23 std::string
PollGetUpdatesRequestEvent::GetType() const {
24 return "Poll GetUpdate request";
27 std::string
PollGetUpdatesRequestEvent::GetDetails() const {
31 scoped_ptr
<base::DictionaryValue
>
32 PollGetUpdatesRequestEvent::GetProtoMessage() const {
33 return scoped_ptr
<base::DictionaryValue
>(
34 ClientToServerMessageToValue(request_
, false));
37 scoped_ptr
<ProtocolEvent
> PollGetUpdatesRequestEvent::Clone() const {
38 return scoped_ptr
<ProtocolEvent
>(
39 new PollGetUpdatesRequestEvent(