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

Side by Side Diff: components/sync/base/model_type.h

Issue 2425673003: [Sync] Moved down comments directly following copyright. (Closed)
Patch Set: Rebase and removing TODO about exporting. 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Enumerate the various item subtypes that are supported by sync.
6 // Each sync object is expected to have an immutable object type.
7 // An object's type is inferred from the type of data it holds.
8
9 #ifndef COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 5 #ifndef COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
10 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 6 #define COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
11 7
12 #include <map> 8 #include <map>
13 #include <memory> 9 #include <memory>
14 #include <ostream> 10 #include <ostream>
15 #include <set> 11 #include <set>
16 #include <string> 12 #include <string>
17 13
18 #include "base/logging.h" 14 #include "base/logging.h"
19 #include "components/sync/base/enum_set.h" 15 #include "components/sync/base/enum_set.h"
20 16
21 namespace base { 17 namespace base {
22 class ListValue; 18 class ListValue;
23 class StringValue; 19 class StringValue;
24 class Value; 20 class Value;
25 } 21 }
26 22
27 namespace sync_pb { 23 namespace sync_pb {
28 class EntitySpecifics; 24 class EntitySpecifics;
29 class SyncEntity; 25 class SyncEntity;
30 } 26 }
31 27
32 namespace syncer { 28 namespace syncer {
33 29
34 // TODO(akalin): Move the non-exported functions in this file to a 30 // Enumerate the various item subtypes that are supported by sync.
35 // private header. 31 // Each sync object is expected to have an immutable object type.
32 // An object's type is inferred from the type of data it holds.
36 33
maxbogue 2016/10/17 23:59:46 Since this is one continuous comment block that ha
skym 2016/10/18 14:39:08 Done.
37 // A Java counterpart will be generated for this enum. 34 // A Java counterpart will be generated for this enum.
38 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.sync 35 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.sync
39 36
40 // |kModelTypeInfoMap| struct entries are in the same order as their definition 37 // |kModelTypeInfoMap| struct entries are in the same order as their definition
41 // in ModelType enum. Don't forget to update the |kModelTypeInfoMap| struct in 38 // in ModelType enum. Don't forget to update the |kModelTypeInfoMap| struct in
42 // model_type.cc when you make changes in ModelType enum. 39 // model_type.cc when you make changes in ModelType enum.
43 enum ModelType { 40 enum ModelType {
44 // Object type unknown. Objects may transition through 41 // Object type unknown. Objects may transition through
45 // the unknown state during their initial creation, before 42 // the unknown state during their initial creation, before
46 // their properties are set. After deletion, object types 43 // their properties are set. After deletion, object types
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 348
352 // Returns true if |model_type| supports parent-child hierarchy or entries. 349 // Returns true if |model_type| supports parent-child hierarchy or entries.
353 bool TypeSupportsHierarchy(ModelType model_type); 350 bool TypeSupportsHierarchy(ModelType model_type);
354 351
355 // Returns true if |model_type| supports ordering of sibling entries. 352 // Returns true if |model_type| supports ordering of sibling entries.
356 bool TypeSupportsOrdering(ModelType model_type); 353 bool TypeSupportsOrdering(ModelType model_type);
357 354
358 } // namespace syncer 355 } // namespace syncer
359 356
360 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_ 357 #endif // COMPONENTS_SYNC_BASE_MODEL_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698