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

Side by Side Diff: chrome/browser/sync/glue/bookmark_model_associator.h

Issue 2867036: sync: Remove unused function ChromeModelHasUserCreatedNodes. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: explicit Created 10 years, 5 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_SYNC_GLUE_BOOKMARK_MODEL_ASSOCIATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BOOKMARK_MODEL_ASSOCIATOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_MODEL_ASSOCIATOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_BOOKMARK_MODEL_ASSOCIATOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // corresponding. Returns true on success. On failure of this step, we 50 // corresponding. Returns true on success. On failure of this step, we
51 // should abort the sync operation and report an error to the user. 51 // should abort the sync operation and report an error to the user.
52 virtual bool AssociateModels(); 52 virtual bool AssociateModels();
53 53
54 virtual bool DisassociateModels(); 54 virtual bool DisassociateModels();
55 55
56 // The has_nodes out param is true if the sync model has nodes other 56 // The has_nodes out param is true if the sync model has nodes other
57 // than the permanent tagged nodes. 57 // than the permanent tagged nodes.
58 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); 58 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes);
59 59
60 // The has_nodes out param is true if the bookmark model has user
61 // created nodes or not. That is, whether there are nodes in the
62 // bookmark model except the bookmark bar and other bookmarks.
63 virtual bool ChromeModelHasUserCreatedNodes(bool* has_nodes);
64
65 // Returns sync id for the given bookmark node id. 60 // Returns sync id for the given bookmark node id.
66 // Returns sync_api::kInvalidId if the sync node is not found for the given 61 // Returns sync_api::kInvalidId if the sync node is not found for the given
67 // bookmark node id. 62 // bookmark node id.
68 virtual int64 GetSyncIdFromChromeId(int64 node_id); 63 virtual int64 GetSyncIdFromChromeId(int64 node_id);
69 64
70 // Returns the bookmark node for the given sync id. 65 // Returns the bookmark node for the given sync id.
71 // Returns NULL if no bookmark node is found for the given sync id. 66 // Returns NULL if no bookmark node is found for the given sync id.
72 virtual const BookmarkNode* GetChromeNodeFromSyncId(int64 sync_id); 67 virtual const BookmarkNode* GetChromeNodeFromSyncId(int64 sync_id);
73 68
74 // Initializes the given sync node from the given bookmark node id. 69 // Initializes the given sync node from the given bookmark node id.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // guarantees no invocations can occur if |this| has been deleted. (This 133 // guarantees no invocations can occur if |this| has been deleted. (This
139 // allows this class to be non-refcounted). 134 // allows this class to be non-refcounted).
140 ScopedRunnableMethodFactory<BookmarkModelAssociator> persist_associations_; 135 ScopedRunnableMethodFactory<BookmarkModelAssociator> persist_associations_;
141 136
142 DISALLOW_COPY_AND_ASSIGN(BookmarkModelAssociator); 137 DISALLOW_COPY_AND_ASSIGN(BookmarkModelAssociator);
143 }; 138 };
144 139
145 } // namespace browser_sync 140 } // namespace browser_sync
146 141
147 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_MODEL_ASSOCIATOR_H_ 142 #endif // CHROME_BROWSER_SYNC_GLUE_BOOKMARK_MODEL_ASSOCIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698