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

Side by Side Diff: components/sync/engine/events/configure_get_updates_request_event.h

Issue 2436863005: [Sync] Move events files around a bit. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 #ifndef COMPONENTS_SYNC_ENGINE_EVENTS_CONFIGURE_GET_UPDATES_REQUEST_EVENT_H_
6 #define COMPONENTS_SYNC_ENGINE_EVENTS_CONFIGURE_GET_UPDATES_REQUEST_EVENT_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "base/macros.h"
12 #include "base/time/time.h"
13 #include "base/values.h"
14 #include "components/sync/engine/events/protocol_event.h"
15 #include "components/sync/protocol/sync.pb.h"
16
17 namespace syncer {
18
19 // An event representing a configure GetUpdates request to the server.
20 class ConfigureGetUpdatesRequestEvent : public ProtocolEvent {
21 public:
22 ConfigureGetUpdatesRequestEvent(
23 base::Time timestamp,
24 sync_pb::SyncEnums::GetUpdatesOrigin origin,
25 const sync_pb::ClientToServerMessage& request);
26 ~ConfigureGetUpdatesRequestEvent() override;
27
28 base::Time GetTimestamp() const override;
29 std::string GetType() const override;
30 std::string GetDetails() const override;
31 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override;
32 std::unique_ptr<ProtocolEvent> Clone() const override;
33
34 private:
35 const base::Time timestamp_;
36 const sync_pb::SyncEnums::GetUpdatesOrigin origin_;
37 const sync_pb::ClientToServerMessage request_;
38
39 DISALLOW_COPY_AND_ASSIGN(ConfigureGetUpdatesRequestEvent);
40 };
41
42 } // namespace syncer
43
44 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_CONFIGURE_GET_UPDATES_REQUEST_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698