ffmpeg_common: s/PIX_FMT/AV_PIX_FMT/
[chromium-blink-merge.git] / sync / internal_api / events / clear_server_data_request_event.cc
blobc9118fa0cef3127d6b2c948750397357250e5298
1 // Copyright 2015 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/clear_server_data_request_event.h"
7 #include "base/strings/stringprintf.h"
8 #include "sync/protocol/proto_value_conversions.h"
10 namespace syncer {
12 ClearServerDataRequestEvent::ClearServerDataRequestEvent(
13 base::Time timestamp,
14 const sync_pb::ClientToServerMessage& request)
15 : timestamp_(timestamp), request_(request) {}
17 ClearServerDataRequestEvent::~ClearServerDataRequestEvent() {}
19 base::Time ClearServerDataRequestEvent::GetTimestamp() const {
20 return timestamp_;
23 std::string ClearServerDataRequestEvent::GetType() const {
24 return "ClearServerData Request";
27 std::string ClearServerDataRequestEvent::GetDetails() const {
28 return std::string();
31 scoped_ptr<base::DictionaryValue> ClearServerDataRequestEvent::GetProtoMessage()
32 const {
33 return scoped_ptr<base::DictionaryValue>(
34 ClientToServerMessageToValue(request_, false));
37 scoped_ptr<ProtocolEvent> ClearServerDataRequestEvent::Clone() const {
38 return scoped_ptr<ProtocolEvent>(
39 new ClearServerDataRequestEvent(timestamp_, request_));
42 } // namespace syncer