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

Side by Side Diff: components/sync_bookmarks/bookmark_model_associator.h

Issue 2461463002: [Sync] Replacing NULL with nullptr/null throughout sync code. (Closed)
Patch Set: Reverted PROFILE_nullptr mistake. Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BOOKMARKS_BOOKMARK_MODEL_ASSOCIATOR_H_ 5 #ifndef COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_MODEL_ASSOCIATOR_H_
6 #define COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_MODEL_ASSOCIATOR_H_ 6 #define COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_MODEL_ASSOCIATOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // The has_nodes out param is true if the sync model has nodes other 81 // The has_nodes out param is true if the sync model has nodes other
82 // than the permanent tagged nodes. 82 // than the permanent tagged nodes.
83 bool SyncModelHasUserCreatedNodes(bool* has_nodes) override; 83 bool SyncModelHasUserCreatedNodes(bool* has_nodes) override;
84 84
85 // Returns sync id for the given bookmark node id. 85 // Returns sync id for the given bookmark node id.
86 // Returns syncer::kInvalidId if the sync node is not found for the given 86 // Returns syncer::kInvalidId if the sync node is not found for the given
87 // bookmark node id. 87 // bookmark node id.
88 int64_t GetSyncIdFromChromeId(const int64_t& node_id) override; 88 int64_t GetSyncIdFromChromeId(const int64_t& node_id) override;
89 89
90 // Returns the bookmark node for the given sync id. 90 // Returns the bookmark node for the given sync id.
91 // Returns NULL if no bookmark node is found for the given sync id. 91 // Returns null if no bookmark node is found for the given sync id.
92 const bookmarks::BookmarkNode* GetChromeNodeFromSyncId( 92 const bookmarks::BookmarkNode* GetChromeNodeFromSyncId(
93 int64_t sync_id) override; 93 int64_t sync_id) override;
94 94
95 // Initializes the given sync node from the given bookmark node id. 95 // Initializes the given sync node from the given bookmark node id.
96 // Returns false if no sync node was found for the given bookmark node id or 96 // Returns false if no sync node was found for the given bookmark node id or
97 // if the initialization of sync node fails. 97 // if the initialization of sync node fails.
98 bool InitSyncNodeFromChromeId(const int64_t& node_id, 98 bool InitSyncNodeFromChromeId(const int64_t& node_id,
99 syncer::BaseNode* sync_node) override; 99 syncer::BaseNode* sync_node) override;
100 100
101 // Associates the given bookmark node with the given sync node. 101 // Associates the given bookmark node with the given sync node.
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // guarantees no invocations can occur if |this| has been deleted. (This 303 // guarantees no invocations can occur if |this| has been deleted. (This
304 // allows this class to be non-refcounted). 304 // allows this class to be non-refcounted).
305 base::WeakPtrFactory<BookmarkModelAssociator> weak_factory_; 305 base::WeakPtrFactory<BookmarkModelAssociator> weak_factory_;
306 306
307 DISALLOW_COPY_AND_ASSIGN(BookmarkModelAssociator); 307 DISALLOW_COPY_AND_ASSIGN(BookmarkModelAssociator);
308 }; 308 };
309 309
310 } // namespace sync_bookmarks 310 } // namespace sync_bookmarks
311 311
312 #endif // COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_MODEL_ASSOCIATOR_H_ 312 #endif // COMPONENTS_SYNC_BOOKMARKS_BOOKMARK_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « components/sync_bookmarks/bookmark_change_processor.cc ('k') | components/sync_bookmarks/bookmark_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698