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

Side by Side Diff: components/sync/engine_impl/directory_commit_contribution.h

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. 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_ENGINE_IMPL_DIRECTORY_COMMIT_CONTRIBUTION_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_COMMIT_CONTRIBUTION_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_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
(...skipping 24 matching lines...) Expand all
35 // including processing the commit response message and setting and unsetting 35 // including processing the commit response message and setting and unsetting
36 // the SYNCING bits. 36 // the SYNCING bits.
37 class DirectoryCommitContribution : public CommitContribution { 37 class DirectoryCommitContribution : public CommitContribution {
38 public: 38 public:
39 // This destructor will DCHECK if UnsetSyncingBits() has not been called yet. 39 // This destructor will DCHECK if UnsetSyncingBits() has not been called yet.
40 ~DirectoryCommitContribution() override; 40 ~DirectoryCommitContribution() override;
41 41
42 // Build a CommitContribution from the IS_UNSYNCED items in |dir| with the 42 // Build a CommitContribution from the IS_UNSYNCED items in |dir| with the
43 // given |type|. The contribution will include at most |max_items| entries. 43 // given |type|. The contribution will include at most |max_items| entries.
44 // 44 //
45 // This function may return NULL if this type has no items ready for and 45 // This function may return null if this type has no items ready for and
46 // requiring commit. This function may make model neutral changes to the 46 // requiring commit. This function may make model neutral changes to the
47 // directory. 47 // directory.
48 static std::unique_ptr<DirectoryCommitContribution> Build( 48 static std::unique_ptr<DirectoryCommitContribution> Build(
49 syncable::Directory* dir, 49 syncable::Directory* dir,
50 ModelType type, 50 ModelType type,
51 size_t max_items, 51 size_t max_items,
52 DirectoryTypeDebugInfoEmitter* debug_info_emitter); 52 DirectoryTypeDebugInfoEmitter* debug_info_emitter);
53 53
54 // Serialize this contribution's entries to the given commit request |msg|. 54 // Serialize this contribution's entries to the given commit request |msg|.
55 // 55 //
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // A pointer to the commit counters of our parent CommitContributor. 104 // A pointer to the commit counters of our parent CommitContributor.
105 DirectoryTypeDebugInfoEmitter* debug_info_emitter_; 105 DirectoryTypeDebugInfoEmitter* debug_info_emitter_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(DirectoryCommitContribution); 107 DISALLOW_COPY_AND_ASSIGN(DirectoryCommitContribution);
108 }; 108 };
109 109
110 } // namespace syncer 110 } // namespace syncer
111 111
112 #endif // COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_COMMIT_CONTRIBUTION_H_ 112 #endif // COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_COMMIT_CONTRIBUTION_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/cycle/sync_cycle.h ('k') | components/sync/engine_impl/directory_update_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698