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

Side by Side Diff: sync/internal_api/public/base/model_type.h

Issue 11441005: Create a fresh sync datatype for Synced Notifications (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix merge conflict in prolto_value_conversions.h Created 7 years, 11 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
« no previous file with comments | « net/tools/testserver/chromiumsync.py ('k') | sync/protocol/nigori_specifics.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. 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 SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ 9 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_
10 #define SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ 10 #define SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // An app folder or an app object. 76 // An app folder or an app object.
77 APPS, 77 APPS,
78 // An app setting from the extension settings API. 78 // An app setting from the extension settings API.
79 APP_SETTINGS, 79 APP_SETTINGS,
80 // An extension setting from the extension settings API. 80 // An extension setting from the extension settings API.
81 EXTENSION_SETTINGS, 81 EXTENSION_SETTINGS,
82 // App notifications. 82 // App notifications.
83 APP_NOTIFICATIONS, 83 APP_NOTIFICATIONS,
84 // History delete directives. 84 // History delete directives.
85 HISTORY_DELETE_DIRECTIVES, 85 HISTORY_DELETE_DIRECTIVES,
86 LAST_USER_MODEL_TYPE = HISTORY_DELETE_DIRECTIVES, 86 // Synced push notifications.
87 SYNCED_NOTIFICATIONS,
88 LAST_USER_MODEL_TYPE = SYNCED_NOTIFICATIONS,
87 89
88 // An object representing a set of Nigori keys. 90 // An object representing a set of Nigori keys.
89 NIGORI, 91 NIGORI,
90 FIRST_CONTROL_MODEL_TYPE = NIGORI, 92 FIRST_CONTROL_MODEL_TYPE = NIGORI,
91 // Client-specific metadata. 93 // Client-specific metadata.
92 DEVICE_INFO, 94 DEVICE_INFO,
93 // Flags to enable experimental features. 95 // Flags to enable experimental features.
94 EXPERIMENTS, 96 EXPERIMENTS,
95 LAST_CONTROL_MODEL_TYPE = EXPERIMENTS, 97 LAST_CONTROL_MODEL_TYPE = EXPERIMENTS,
96 98
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // type and |model_type| was filled in. 234 // type and |model_type| was filled in.
233 bool NotificationTypeToRealModelType(const std::string& notification_type, 235 bool NotificationTypeToRealModelType(const std::string& notification_type,
234 ModelType* model_type); 236 ModelType* model_type);
235 237
236 // Returns true if |model_type| is a real datatype 238 // Returns true if |model_type| is a real datatype
237 SYNC_EXPORT bool IsRealDataType(ModelType model_type); 239 SYNC_EXPORT bool IsRealDataType(ModelType model_type);
238 240
239 } // namespace syncer 241 } // namespace syncer
240 242
241 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_ 243 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_MODEL_TYPE_H_
OLDNEW
« no previous file with comments | « net/tools/testserver/chromiumsync.py ('k') | sync/protocol/nigori_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698