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

Unified Diff: sync/internal_api/public/syncable/model_type.h

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/syncable/model_type.h
diff --git a/sync/internal_api/public/syncable/model_type.h b/sync/internal_api/public/syncable/model_type.h
index e134ee641ffb82c6e5481a01f5da33583587f13c..a63ac65c49268a5f06917c010721dfcd2f696cf6 100644
--- a/sync/internal_api/public/syncable/model_type.h
+++ b/sync/internal_api/public/syncable/model_type.h
@@ -28,6 +28,8 @@ class EntitySpecifics;
class SyncEntity;
}
+namespace syncer {
+
namespace syncable {
enum ModelType {
@@ -172,4 +174,54 @@ bool IsRealDataType(ModelType model_type);
} // namespace syncable
+} // namespace syncer
+
+// TODO(akalin): Move the names below to the 'syncer' namespace once
+// we move this file to public/base.
+namespace syncable {
+
+using syncer::syncable::ModelType;
+using syncer::syncable::ModelTypeSet;
+using syncer::syncable::FullModelTypeSet;
+using syncer::syncable::UNSPECIFIED;
+using syncer::syncable::TOP_LEVEL_FOLDER;
+using syncer::syncable::BOOKMARKS;
+using syncer::syncable::FIRST_REAL_MODEL_TYPE;
+using syncer::syncable::PREFERENCES;
+using syncer::syncable::PASSWORDS;
+using syncer::syncable::AUTOFILL_PROFILE;
+using syncer::syncable::AUTOFILL;
+using syncer::syncable::THEMES;
+using syncer::syncable::TYPED_URLS;
+using syncer::syncable::EXTENSIONS;
+using syncer::syncable::NIGORI;
+using syncer::syncable::SEARCH_ENGINES;
+using syncer::syncable::SESSIONS;
+using syncer::syncable::APPS;
+using syncer::syncable::APP_SETTINGS;
+using syncer::syncable::EXTENSION_SETTINGS;
+using syncer::syncable::APP_NOTIFICATIONS;
+using syncer::syncable::LAST_REAL_MODEL_TYPE;
+using syncer::syncable::MODEL_TYPE_COUNT;
+using syncer::syncable::ModelTypeFromInt;
+using syncer::syncable::AddDefaultFieldValue;
+using syncer::syncable::GetModelType;
+using syncer::syncable::GetModelTypeFromSpecifics;
+using syncer::syncable::ShouldMaintainPosition;
+using syncer::syncable::GetModelTypeFromSpecificsFieldNumber;
+using syncer::syncable::GetSpecificsFieldNumberFromModelType;
+using syncer::syncable::ModelTypeToString;
+using syncer::syncable::ModelTypeToValue;
+using syncer::syncable::ModelTypeFromValue;
+using syncer::syncable::ModelTypeFromString;
+using syncer::syncable::ModelTypeSetToString;
+using syncer::syncable::ModelTypeSetToValue;
+using syncer::syncable::ModelTypeSetFromValue;
+using syncer::syncable::ModelTypeToRootTag;
+using syncer::syncable::RealModelTypeToNotificationType;
+using syncer::syncable::NotificationTypeToRealModelType;
+using syncer::syncable::IsRealDataType;
+
+} // namespace syncable
+
#endif // SYNC_INTERNAL_API_PUBLIC_SYNCABLE_MODEL_TYPE_H_

Powered by Google App Engine
This is Rietveld 408576698