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

Side by Side Diff: components/sync/engine_impl/directory_commit_contribution.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_ENGINE_DIRECTORY_COMMIT_CONTRIBUTION_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_COMMIT_CONTRIBUTION_H_
6 #define SYNC_ENGINE_DIRECTORY_COMMIT_CONTRIBUTION_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_COMMIT_CONTRIBUTION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "sync/base/sync_export.h" 16 #include "components/sync/base/model_type.h"
17 #include "sync/engine/commit_contribution.h" 17 #include "components/sync/base/sync_export.h"
18 #include "sync/internal_api/public/base/model_type.h" 18 #include "components/sync/base/syncer_error.h"
19 #include "sync/internal_api/public/util/syncer_error.h" 19 #include "components/sync/engine_impl/commit_contribution.h"
20 #include "sync/protocol/sync.pb.h" 20 #include "components/sync/protocol/sync.pb.h"
21 #include "sync/sessions/directory_type_debug_info_emitter.h" 21 #include "components/sync/sessions_impl/directory_type_debug_info_emitter.h"
22 #include "sync/sessions/status_controller.h" 22 #include "components/sync/sessions_impl/status_controller.h"
23 23
24 namespace syncer { 24 namespace syncer {
25 25
26 namespace sessions { 26 namespace sessions {
27 class StatusController; 27 class StatusController;
28 } // namespace sessions 28 } // namespace sessions
29 29
30 namespace syncable { 30 namespace syncable {
31 class Directory; 31 class Directory;
32 } // namespace syncable 32 } // namespace syncable
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Cleans up any temporary state associated with the commit. Must be called 74 // Cleans up any temporary state associated with the commit. Must be called
75 // before destruction. 75 // before destruction.
76 void CleanUp() override; 76 void CleanUp() override;
77 77
78 // Returns the number of entries included in this contribution. 78 // Returns the number of entries included in this contribution.
79 size_t GetNumEntries() const override; 79 size_t GetNumEntries() const override;
80 80
81 private: 81 private:
82 class DirectoryCommitContributionTest; 82 class DirectoryCommitContributionTest;
83 FRIEND_TEST_ALL_PREFIXES(DirectoryCommitContributionTest, GatherByTypes); 83 FRIEND_TEST_ALL_PREFIXES(DirectoryCommitContributionTest, GatherByTypes);
84 FRIEND_TEST_ALL_PREFIXES(DirectoryCommitContributionTest, 84 FRIEND_TEST_ALL_PREFIXES(DirectoryCommitContributionTest, GatherAndTruncate);
85 GatherAndTruncate);
86 85
87 DirectoryCommitContribution( 86 DirectoryCommitContribution(
88 const std::vector<int64_t>& metahandles, 87 const std::vector<int64_t>& metahandles,
89 const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities, 88 const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities,
90 const sync_pb::DataTypeContext& context, 89 const sync_pb::DataTypeContext& context,
91 syncable::Directory* directory, 90 syncable::Directory* directory,
92 DirectoryTypeDebugInfoEmitter* debug_info_emitter); 91 DirectoryTypeDebugInfoEmitter* debug_info_emitter);
93 92
94 void UnsetSyncingBits(); 93 void UnsetSyncingBits();
95 94
(...skipping 10 matching lines...) Expand all
106 bool syncing_bits_set_; 105 bool syncing_bits_set_;
107 106
108 // A pointer to the commit counters of our parent CommitContributor. 107 // A pointer to the commit counters of our parent CommitContributor.
109 DirectoryTypeDebugInfoEmitter* debug_info_emitter_; 108 DirectoryTypeDebugInfoEmitter* debug_info_emitter_;
110 109
111 DISALLOW_COPY_AND_ASSIGN(DirectoryCommitContribution); 110 DISALLOW_COPY_AND_ASSIGN(DirectoryCommitContribution);
112 }; 111 };
113 112
114 } // namespace syncer 113 } // namespace syncer
115 114
116 #endif // SYNC_ENGINE_DIRECTORY_COMMIT_CONTRIBUTION_H_ 115 #endif // COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_COMMIT_CONTRIBUTION_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/conflict_util.cc ('k') | components/sync/engine_impl/directory_commit_contribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698