Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: sync/internal_api/events/poll_get_updates_request_event.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "sync/internal_api/public/events/poll_get_updates_request_event.h"
6
7 #include "sync/protocol/proto_value_conversions.h"
8
9 namespace syncer {
10
11 PollGetUpdatesRequestEvent::PollGetUpdatesRequestEvent(
12 base::Time timestamp,
13 const sync_pb::ClientToServerMessage& request)
14 : timestamp_(timestamp),
15 request_(request) { }
16
17 PollGetUpdatesRequestEvent::~PollGetUpdatesRequestEvent() {}
18
19 base::Time PollGetUpdatesRequestEvent::GetTimestamp() const {
20 return timestamp_;
21 }
22
23 std::string PollGetUpdatesRequestEvent::GetType() const {
24 return "Poll GetUpdate request";
25 }
26
27 std::string PollGetUpdatesRequestEvent::GetDetails() const {
28 return std::string();
29 }
30
31 std::unique_ptr<base::DictionaryValue>
32 PollGetUpdatesRequestEvent::GetProtoMessage() const {
33 return std::unique_ptr<base::DictionaryValue>(
34 ClientToServerMessageToValue(request_, false));
35 }
36
37 std::unique_ptr<ProtocolEvent> PollGetUpdatesRequestEvent::Clone() const {
38 return std::unique_ptr<ProtocolEvent>(
39 new PollGetUpdatesRequestEvent(timestamp_, request_));
40 }
41
42 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/events/normal_get_updates_request_event.cc ('k') | sync/internal_api/events/protocol_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698