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

Side by Side Diff: sync/engine/sync_directory_commit_contributor.h

Issue 93433006: sync: Introduce ModelTypeRegistry and helpers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leak in tests Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « sync/engine/process_updates_util.cc ('k') | sync/engine/sync_directory_update_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_ 5 #ifndef SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_
6 #define SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_ 6 #define SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "sync/internal_api/public/base/model_type.h" 10 #include "sync/internal_api/public/base/model_type.h"
(...skipping 18 matching lines...) Expand all
29 SyncDirectoryCommitContributor(syncable::Directory* dir, ModelType type); 29 SyncDirectoryCommitContributor(syncable::Directory* dir, ModelType type);
30 ~SyncDirectoryCommitContributor(); 30 ~SyncDirectoryCommitContributor();
31 31
32 SyncDirectoryCommitContribution* GetContribution(size_t max_entries); 32 SyncDirectoryCommitContribution* GetContribution(size_t max_entries);
33 33
34 private: 34 private:
35 syncable::Directory* dir_; 35 syncable::Directory* dir_;
36 ModelType type_; 36 ModelType type_;
37 }; 37 };
38 38
39 // TODO(rlarocque): Find a better place for this definition.
40 typedef std::map<ModelType, SyncDirectoryCommitContributor*>
41 CommitContributorMap;
42
43 } // namespace 39 } // namespace
44 40
45 #endif // SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_ 41 #endif // SYNC_ENGINE_SYNC_DIRECTORY_COMMIT_CONTRIBUTOR_H_
OLDNEW
« no previous file with comments | « sync/engine/process_updates_util.cc ('k') | sync/engine/sync_directory_update_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698