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

Unified Diff: sync/engine/directory_commit_contribution.h

Issue 260613002: sync: Expose DirectoryDebugInfoEmitters in engine (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sync/engine/directory_commit_contribution.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/directory_commit_contribution.h
diff --git a/sync/engine/directory_commit_contribution.h b/sync/engine/directory_commit_contribution.h
index 83cefe9d4970c9266f19db885c75633ededc131f..0b15358320473eff4f8bd1dec340c80fc45246fc 100644
--- a/sync/engine/directory_commit_contribution.h
+++ b/sync/engine/directory_commit_contribution.h
@@ -14,6 +14,7 @@
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/util/syncer_error.h"
#include "sync/protocol/sync.pb.h"
+#include "sync/sessions/directory_type_debug_info_emitter.h"
#include "sync/sessions/status_controller.h"
namespace syncer {
@@ -47,7 +48,8 @@ class SYNC_EXPORT_PRIVATE DirectoryCommitContribution
static scoped_ptr<DirectoryCommitContribution> Build(
syncable::Directory* dir,
ModelType type,
- size_t max_items);
+ size_t max_items,
+ DirectoryTypeDebugInfoEmitter* debug_info_emitter);
// Serialize this contribution's entries to the given commit request |msg|.
//
@@ -83,7 +85,8 @@ class SYNC_EXPORT_PRIVATE DirectoryCommitContribution
const std::vector<int64>& metahandles,
const google::protobuf::RepeatedPtrField<sync_pb::SyncEntity>& entities,
const sync_pb::DataTypeContext& context,
- syncable::Directory* directory);
+ syncable::Directory* directory,
+ DirectoryTypeDebugInfoEmitter* debug_info_emitter);
void UnsetSyncingBits();
@@ -99,6 +102,9 @@ class SYNC_EXPORT_PRIVATE DirectoryCommitContribution
// called. This flag must be unset by the time our destructor is called.
bool syncing_bits_set_;
+ // A pointer to the commit counters of our parent CommitContributor.
+ DirectoryTypeDebugInfoEmitter* debug_info_emitter_;
+
DISALLOW_COPY_AND_ASSIGN(DirectoryCommitContribution);
};
« no previous file with comments | « no previous file | sync/engine/directory_commit_contribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698