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

Side by Side Diff: components/sync/core/processor_entity_tracker.h

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (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
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_CORE_PROCESSOR_ENTITY_TRACKER_H_ 5 #ifndef COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_
6 #define COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ 6 #define COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "components/sync/api/entity_data.h" 14 #include "components/sync/api/entity_data.h"
15 #include "components/sync/protocol/entity_metadata.pb.h" 15 #include "components/sync/protocol/entity_metadata.pb.h"
16 16
17 namespace syncer_v2 { 17 namespace syncer {
18 struct CommitRequestData; 18 struct CommitRequestData;
19 struct CommitResponseData; 19 struct CommitResponseData;
20 struct UpdateResponseData; 20 struct UpdateResponseData;
21 21
22 // This class is used by the SharedModelTypeProcessor to track the state of each 22 // This class is used by the SharedModelTypeProcessor to track the state of each
23 // entity with its type. It can be considered a helper class internal to the 23 // entity with its type. It can be considered a helper class internal to the
24 // processor. It manages the metadata for its entity and caches entity data 24 // processor. It manages the metadata for its entity and caches entity data
25 // upon a local change until commit confirmation is received. 25 // upon a local change until commit confirmation is received.
26 class ProcessorEntityTracker { 26 class ProcessorEntityTracker {
27 public: 27 public:
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 sync_pb::EntityMetadata metadata_; 141 sync_pb::EntityMetadata metadata_;
142 142
143 // Sync data that exists for items being committed only. 143 // Sync data that exists for items being committed only.
144 // The data is reset once commit confirmation is received. 144 // The data is reset once commit confirmation is received.
145 EntityDataPtr commit_data_; 145 EntityDataPtr commit_data_;
146 146
147 // The sequence number of the last item sent to the sync thread. 147 // The sequence number of the last item sent to the sync thread.
148 int64_t commit_requested_sequence_number_; 148 int64_t commit_requested_sequence_number_;
149 }; 149 };
150 150
151 } // namespace syncer_v2 151 } // namespace syncer
152 152
153 #endif // COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_ 153 #endif // COMPONENTS_SYNC_CORE_PROCESSOR_ENTITY_TRACKER_H_
OLDNEW
« no previous file with comments | « components/sync/core/non_blocking_sync_common.cc ('k') | components/sync/core/processor_entity_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698