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

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

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 12 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/base/model_type.h
diff --git a/sync/internal_api/public/base/model_type.h b/sync/internal_api/public/base/model_type.h
index 23ca2d8fde79d24c83d95312b7442c8edd2706d7..f24e61dd9a3b7be04182ccdc8723a5b8c31798c5 100644
--- a/sync/internal_api/public/base/model_type.h
+++ b/sync/internal_api/public/base/model_type.h
@@ -123,7 +123,8 @@ SYNC_EXPORT void AddDefaultFieldValue(ModelType datatype,
// local concept: the enum is not in the protocol. The SyncEntity's ModelType
// is inferred from the presence of particular datatype field in the
// entity specifics.
-ModelType GetModelType(const sync_pb::SyncEntity& sync_entity);
+SYNC_EXPORT_PRIVATE ModelType GetModelType(
+ const sync_pb::SyncEntity& sync_entity);
// Extract the model type from an EntitySpecifics field. Note that there
// are some ModelTypes (like TOP_LEVEL_FOLDER) that can't be inferred this way;
@@ -140,7 +141,7 @@ bool ShouldMaintainPosition(ModelType model_type);
SYNC_EXPORT ModelTypeSet UserTypes();
// This is the subset of UserTypes() that can be encrypted.
-ModelTypeSet EncryptableUserTypes();
+SYNC_EXPORT_PRIVATE ModelTypeSet EncryptableUserTypes();
// Returns a list of all control types.
//
@@ -179,7 +180,8 @@ SYNC_EXPORT bool IsControlType(ModelType model_type);
// }
// model_types.Put(model_type);
// }
-ModelType GetModelTypeFromSpecificsFieldNumber(int field_number);
+SYNC_EXPORT_PRIVATE ModelType GetModelTypeFromSpecificsFieldNumber(
+ int field_number);
// Return the field number of the EntitySpecifics field associated with
// a model type.
@@ -199,10 +201,10 @@ SYNC_EXPORT const char* ModelTypeToString(ModelType model_type);
// Handles all model types, and not just real ones.
//
// Caller takes ownership of returned value.
-base::StringValue* ModelTypeToValue(ModelType model_type);
+SYNC_EXPORT_PRIVATE base::StringValue* ModelTypeToValue(ModelType model_type);
// Converts a Value into a ModelType - complement to ModelTypeToValue().
-ModelType ModelTypeFromValue(const base::Value& value);
+SYNC_EXPORT_PRIVATE ModelType ModelTypeFromValue(const base::Value& value);
// Returns the ModelType corresponding to the name |model_type_string|.
SYNC_EXPORT ModelType ModelTypeFromString(
« no previous file with comments | « sync/internal_api/public/base/invalidation.cc ('k') | sync/internal_api/public/base/model_type_invalidation_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698