OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/sync/engine/events/poll_get_updates_request_event.h" | 5 #include "components/sync/engine_impl/events/poll_get_updates_request_event.h" |
6 | 6 |
7 #include "components/sync/protocol/proto_value_conversions.h" | 7 #include "components/sync/protocol/proto_value_conversions.h" |
8 | 8 |
9 namespace syncer { | 9 namespace syncer { |
10 | 10 |
11 PollGetUpdatesRequestEvent::PollGetUpdatesRequestEvent( | 11 PollGetUpdatesRequestEvent::PollGetUpdatesRequestEvent( |
12 base::Time timestamp, | 12 base::Time timestamp, |
13 const sync_pb::ClientToServerMessage& request) | 13 const sync_pb::ClientToServerMessage& request) |
14 : timestamp_(timestamp), request_(request) {} | 14 : timestamp_(timestamp), request_(request) {} |
15 | 15 |
(...skipping 16 matching lines...) Expand all Loading... |
32 return std::unique_ptr<base::DictionaryValue>( | 32 return std::unique_ptr<base::DictionaryValue>( |
33 ClientToServerMessageToValue(request_, false)); | 33 ClientToServerMessageToValue(request_, false)); |
34 } | 34 } |
35 | 35 |
36 std::unique_ptr<ProtocolEvent> PollGetUpdatesRequestEvent::Clone() const { | 36 std::unique_ptr<ProtocolEvent> PollGetUpdatesRequestEvent::Clone() const { |
37 return std::unique_ptr<ProtocolEvent>( | 37 return std::unique_ptr<ProtocolEvent>( |
38 new PollGetUpdatesRequestEvent(timestamp_, request_)); | 38 new PollGetUpdatesRequestEvent(timestamp_, request_)); |
39 } | 39 } |
40 | 40 |
41 } // namespace syncer | 41 } // namespace syncer |
OLD | NEW |