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

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

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. 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
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 #ifndef COMPONENTS_SYNC_ENGINE_EVENTS_POLL_GET_UPDATES_REQUEST_EVENT_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_EVENTS_POLL_GET_UPDATES_REQUEST_EVENT_H_
6 #define COMPONENTS_SYNC_ENGINE_EVENTS_POLL_GET_UPDATES_REQUEST_EVENT_H_ 6 #define COMPONENTS_SYNC_ENGINE_EVENTS_POLL_GET_UPDATES_REQUEST_EVENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "components/sync/base/model_type.h" 14 #include "components/sync/base/model_type.h"
15 #include "components/sync/base/sync_export.h"
16 #include "components/sync/engine/events/protocol_event.h" 15 #include "components/sync/engine/events/protocol_event.h"
17 #include "components/sync/protocol/sync.pb.h" 16 #include "components/sync/protocol/sync.pb.h"
18 17
19 namespace syncer { 18 namespace syncer {
20 19
21 namespace sessions { 20 namespace sessions {
22 class NudgeTracker; 21 class NudgeTracker;
23 } // namespace sessions 22 } // namespace sessions
24 23
25 // An event representing a poll request sent to the server. 24 // An event representing a poll request sent to the server.
26 class SYNC_EXPORT PollGetUpdatesRequestEvent : public ProtocolEvent { 25 class PollGetUpdatesRequestEvent : public ProtocolEvent {
27 public: 26 public:
28 PollGetUpdatesRequestEvent(base::Time timestamp, 27 PollGetUpdatesRequestEvent(base::Time timestamp,
29 const sync_pb::ClientToServerMessage& request); 28 const sync_pb::ClientToServerMessage& request);
30 ~PollGetUpdatesRequestEvent() override; 29 ~PollGetUpdatesRequestEvent() override;
31 30
32 base::Time GetTimestamp() const override; 31 base::Time GetTimestamp() const override;
33 std::string GetType() const override; 32 std::string GetType() const override;
34 std::string GetDetails() const override; 33 std::string GetDetails() const override;
35 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override; 34 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override;
36 std::unique_ptr<ProtocolEvent> Clone() const override; 35 std::unique_ptr<ProtocolEvent> Clone() const override;
37 36
38 private: 37 private:
39 const base::Time timestamp_; 38 const base::Time timestamp_;
40 const sync_pb::ClientToServerMessage request_; 39 const sync_pb::ClientToServerMessage request_;
41 40
42 DISALLOW_COPY_AND_ASSIGN(PollGetUpdatesRequestEvent); 41 DISALLOW_COPY_AND_ASSIGN(PollGetUpdatesRequestEvent);
43 }; 42 };
44 43
45 } // namespace syncer 44 } // namespace syncer
46 45
47 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_POLL_GET_UPDATES_REQUEST_EVENT_H_ 46 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_POLL_GET_UPDATES_REQUEST_EVENT_H_
OLDNEW
« no previous file with comments | « components/sync/engine/events/normal_get_updates_request_event.h ('k') | components/sync/engine/events/protocol_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698