Remove unused parameter.
[chromium-blink-merge.git] / sync / internal_api / events / poll_get_updates_request_event.cc
blobc6eecb9807459f3e86a2ee14a471deae1530387e
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"
9 namespace syncer {
11 PollGetUpdatesRequestEvent::PollGetUpdatesRequestEvent(
12 base::Time timestamp,
13 const sync_pb::ClientToServerMessage& request)
14 : timestamp_(timestamp),
15 request_(request) { }
17 PollGetUpdatesRequestEvent::~PollGetUpdatesRequestEvent() {}
19 base::Time PollGetUpdatesRequestEvent::GetTimestamp() const {
20 return timestamp_;
23 std::string PollGetUpdatesRequestEvent::GetType() const {
24 return "Poll GetUpdate request";
27 std::string PollGetUpdatesRequestEvent::GetDetails() const {
28 return std::string();
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(
40 timestamp_,
41 request_));
44 } // namespace