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

Side by Side Diff: components/sync/engine/events/clear_server_data_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 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.
4
5 #ifndef COMPONENTS_SYNC_ENGINE_EVENTS_CLEAR_SERVER_DATA_REQUEST_EVENT_H_
6 #define COMPONENTS_SYNC_ENGINE_EVENTS_CLEAR_SERVER_DATA_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 ClearServerData request message sent to the server.
20 class ClearServerDataRequestEvent : public ProtocolEvent {
21 public:
22 ClearServerDataRequestEvent(base::Time timestamp,
23 const sync_pb::ClientToServerMessage& request);
24 ~ClearServerDataRequestEvent() override;
25
26 base::Time GetTimestamp() const override;
27 std::string GetType() const override;
28 std::string GetDetails() const override;
29 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override;
30 std::unique_ptr<ProtocolEvent> Clone() const override;
31
32 static std::unique_ptr<base::DictionaryValue> ToValue(
33 const ProtocolEvent& event);
34
35 private:
36 const base::Time timestamp_;
37 const sync_pb::ClientToServerMessage request_;
38
39 DISALLOW_COPY_AND_ASSIGN(ClearServerDataRequestEvent);
40 };
41
42 } // namespace syncer
43
44 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_CLEAR_SERVER_DATA_REQUEST_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698