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

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

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
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 SYNC_INTERNAL_API_PUBLIC_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_
6 #define SYNC_INTERNAL_API_PUBLIC_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ 6 #define COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_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 "sync/base/sync_export.h" 14 #include "components/sync/base/model_type.h"
15 #include "sync/internal_api/public/base/model_type.h" 15 #include "components/sync/base/sync_export.h"
16 #include "sync/internal_api/public/events/protocol_event.h" 16 #include "components/sync/engine/events/protocol_event.h"
17 #include "sync/protocol/sync.pb.h" 17 #include "components/sync/protocol/sync.pb.h"
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 namespace sessions { 21 namespace sessions {
22 class NudgeTracker; 22 class NudgeTracker;
23 } // namespace sessions 23 } // namespace sessions
24 24
25 // An event representing a 'normal mode' GetUpdate request to the server. 25 // An event representing a 'normal mode' GetUpdate request to the server.
26 class SYNC_EXPORT NormalGetUpdatesRequestEvent : public ProtocolEvent { 26 class SYNC_EXPORT NormalGetUpdatesRequestEvent : public ProtocolEvent {
27 public: 27 public:
28 NormalGetUpdatesRequestEvent( 28 NormalGetUpdatesRequestEvent(base::Time timestamp,
29 base::Time timestamp, 29 const sessions::NudgeTracker& nudge_tracker,
30 const sessions::NudgeTracker& nudge_tracker, 30 const sync_pb::ClientToServerMessage& request);
31 const sync_pb::ClientToServerMessage& request);
32 31
33 ~NormalGetUpdatesRequestEvent() override; 32 ~NormalGetUpdatesRequestEvent() override;
34 33
35 base::Time GetTimestamp() const override; 34 base::Time GetTimestamp() const override;
36 std::string GetType() const override; 35 std::string GetType() const override;
37 std::string GetDetails() const override; 36 std::string GetDetails() const override;
38 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override; 37 std::unique_ptr<base::DictionaryValue> GetProtoMessage() const override;
39 std::unique_ptr<ProtocolEvent> Clone() const override; 38 std::unique_ptr<ProtocolEvent> Clone() const override;
40 39
41 private: 40 private:
42 NormalGetUpdatesRequestEvent( 41 NormalGetUpdatesRequestEvent(base::Time timestamp,
43 base::Time timestamp, 42 ModelTypeSet nudged_types,
44 ModelTypeSet nudged_types, 43 ModelTypeSet notified_types,
45 ModelTypeSet notified_types, 44 ModelTypeSet refresh_requested_types,
46 ModelTypeSet refresh_requested_types, 45 bool is_retry,
47 bool is_retry, 46 sync_pb::ClientToServerMessage request);
48 sync_pb::ClientToServerMessage request);
49 47
50 const base::Time timestamp_; 48 const base::Time timestamp_;
51 49
52 const ModelTypeSet nudged_types_; 50 const ModelTypeSet nudged_types_;
53 const ModelTypeSet notified_types_; 51 const ModelTypeSet notified_types_;
54 const ModelTypeSet refresh_requested_types_; 52 const ModelTypeSet refresh_requested_types_;
55 const bool is_retry_; 53 const bool is_retry_;
56 54
57 const sync_pb::ClientToServerMessage request_; 55 const sync_pb::ClientToServerMessage request_;
58 56
59 DISALLOW_COPY_AND_ASSIGN(NormalGetUpdatesRequestEvent); 57 DISALLOW_COPY_AND_ASSIGN(NormalGetUpdatesRequestEvent);
60 }; 58 };
61 59
62 } // namespace syncer 60 } // namespace syncer
63 61
64 #endif // SYNC_INTERNAL_API_PUBLIC_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_ 62 #endif // COMPONENTS_SYNC_ENGINE_EVENTS_NORMAL_GET_UPDATES_REQUEST_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698