OLD | NEW |
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 // Enumerate the various item subtypes that are supported by sync. | 5 // Enumerate the various item subtypes that are supported by sync. |
6 // Each sync object is expected to have an immutable object type. | 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. | 7 // An object's type is inferred from the type of data it holds. |
8 | 8 |
9 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ | 9 #ifndef SYNC_SYNCABLE_MODEL_TYPE_H_ |
10 #define CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ | 10 #define SYNC_SYNCABLE_MODEL_TYPE_H_ |
11 #pragma once | 11 #pragma once |
12 | 12 |
13 #include <set> | 13 #include <set> |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/time.h" | 17 #include "base/time.h" |
18 #include "chrome/browser/sync/util/enum_set.h" | 18 #include "sync/util/enum_set.h" |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class ListValue; | 21 class ListValue; |
22 class StringValue; | 22 class StringValue; |
23 class Value; | 23 class Value; |
24 } | 24 } |
25 | 25 |
26 namespace sync_pb { | 26 namespace sync_pb { |
27 class EntitySpecifics; | 27 class EntitySpecifics; |
28 class SyncEntity; | 28 class SyncEntity; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 // iff |notification_type| was the notification type of a real model | 165 // iff |notification_type| was the notification type of a real model |
166 // type and |model_type| was filled in. | 166 // type and |model_type| was filled in. |
167 bool NotificationTypeToRealModelType(const std::string& notification_type, | 167 bool NotificationTypeToRealModelType(const std::string& notification_type, |
168 ModelType* model_type); | 168 ModelType* model_type); |
169 | 169 |
170 // Returns true if |model_type| is a real datatype | 170 // Returns true if |model_type| is a real datatype |
171 bool IsRealDataType(ModelType model_type); | 171 bool IsRealDataType(ModelType model_type); |
172 | 172 |
173 } // namespace syncable | 173 } // namespace syncable |
174 | 174 |
175 #endif // CHROME_BROWSER_SYNC_SYNCABLE_MODEL_TYPE_H_ | 175 #endif // SYNC_SYNCABLE_MODEL_TYPE_H_ |
OLD | NEW |