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

Side by Side Diff: chrome/browser/sync/glue/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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_MODEL_ASSOCIATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 virtual bool AssociateModels() = 0; 32 virtual bool AssociateModels() = 0;
33 33
34 // Clears all the associations between the chrome and sync models. 34 // Clears all the associations between the chrome and sync models.
35 virtual bool DisassociateModels() = 0; 35 virtual bool DisassociateModels() = 0;
36 36
37 // The has_nodes out parameter is set to true if the sync model has 37 // The has_nodes out parameter is set to true if the sync model has
38 // nodes other than the permanent tagged nodes. The method may 38 // nodes other than the permanent tagged nodes. The method may
39 // return false if an error occurred. 39 // return false if an error occurred.
40 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) = 0; 40 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) = 0;
41 41
42 // The has_nodes out parameter is set to true if the chrome model
43 // has user-created nodes. The method may return false if an error
44 // occurred.
45 virtual bool ChromeModelHasUserCreatedNodes(bool* has_nodes) = 0;
46
47 // Calling this method while AssociateModels() is in progress will 42 // Calling this method while AssociateModels() is in progress will
48 // cause the method to exit early with a "false" return value. This 43 // cause the method to exit early with a "false" return value. This
49 // is useful for aborting model associations for shutdown. This 44 // is useful for aborting model associations for shutdown. This
50 // method is only implemented for model associators that are invoked 45 // method is only implemented for model associators that are invoked
51 // off the main thread. 46 // off the main thread.
52 virtual void AbortAssociation() = 0; 47 virtual void AbortAssociation() = 0;
53 }; 48 };
54 49
55 // In addition to the generic methods, association can refer to operations 50 // In addition to the generic methods, association can refer to operations
56 // that depend on the types of the actual IDs we are associating and the 51 // that depend on the types of the actual IDs we are associating and the
(...skipping 25 matching lines...) Expand all
82 // Associates the given chrome node with the given sync id. 77 // Associates the given chrome node with the given sync id.
83 virtual void Associate(const Node* node, int64 sync_id) = 0; 78 virtual void Associate(const Node* node, int64 sync_id) = 0;
84 79
85 // Remove the association that corresponds to the given sync id. 80 // Remove the association that corresponds to the given sync id.
86 virtual void Disassociate(int64 sync_id) = 0; 81 virtual void Disassociate(int64 sync_id) = 0;
87 }; 82 };
88 83
89 } // namespace browser_sync 84 } // namespace browser_sync
90 85
91 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_ 86 #endif // CHROME_BROWSER_SYNC_GLUE_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/extension_model_associator.cc ('k') | chrome/browser/sync/glue/model_associator_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698