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

Side by Side Diff: sync/internal_api/public/engine/model_safe_worker.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, 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 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 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_MODEL_SAFE_WORKER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_ENGINE_MODEL_SAFE_WORKER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_MODEL_SAFE_WORKER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_ENGINE_MODEL_SAFE_WORKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 private: 67 private:
68 friend class base::RefCountedThreadSafe<ModelSafeWorker>; 68 friend class base::RefCountedThreadSafe<ModelSafeWorker>;
69 }; 69 };
70 70
71 // A map that details which ModelSafeGroup each ModelType 71 // A map that details which ModelSafeGroup each ModelType
72 // belongs to. Routing info can change in response to the user enabling / 72 // belongs to. Routing info can change in response to the user enabling /
73 // disabling sync for certain types, as well as model association completions. 73 // disabling sync for certain types, as well as model association completions.
74 typedef std::map<ModelType, ModelSafeGroup> ModelSafeRoutingInfo; 74 typedef std::map<ModelType, ModelSafeGroup> ModelSafeRoutingInfo;
75 75
76 // Caller takes ownership of return value. 76 // Caller takes ownership of return value.
77 base::DictionaryValue* ModelSafeRoutingInfoToValue( 77 SYNC_EXPORT_PRIVATE base::DictionaryValue* ModelSafeRoutingInfoToValue(
78 const ModelSafeRoutingInfo& routing_info); 78 const ModelSafeRoutingInfo& routing_info);
79 79
80 SYNC_EXPORT std::string ModelSafeRoutingInfoToString( 80 SYNC_EXPORT std::string ModelSafeRoutingInfoToString(
81 const ModelSafeRoutingInfo& routing_info); 81 const ModelSafeRoutingInfo& routing_info);
82 82
83 // Make a ModelTypeInvalidationMap for all the enabled types in a 83 // Make a ModelTypeInvalidationMap for all the enabled types in a
84 // ModelSafeRoutingInfo using a default payload. 84 // ModelSafeRoutingInfo using a default payload.
85 ModelTypeInvalidationMap ModelSafeRoutingInfoToInvalidationMap( 85 SYNC_EXPORT_PRIVATE ModelTypeInvalidationMap
86 const ModelSafeRoutingInfo& routes, 86 ModelSafeRoutingInfoToInvalidationMap(
87 const std::string& payload); 87 const ModelSafeRoutingInfo& routes,
88 const std::string& payload);
88 89
89 SYNC_EXPORT ModelTypeSet GetRoutingInfoTypes( 90 SYNC_EXPORT ModelTypeSet GetRoutingInfoTypes(
90 const ModelSafeRoutingInfo& routing_info); 91 const ModelSafeRoutingInfo& routing_info);
91 92
92 SYNC_EXPORT ModelSafeGroup GetGroupForModelType( 93 SYNC_EXPORT ModelSafeGroup GetGroupForModelType(
93 const ModelType type, 94 const ModelType type,
94 const ModelSafeRoutingInfo& routes); 95 const ModelSafeRoutingInfo& routes);
95 96
96 } // namespace syncer 97 } // namespace syncer
97 98
98 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_MODEL_SAFE_WORKER_H_ 99 #endif // SYNC_INTERNAL_API_PUBLIC_ENGINE_MODEL_SAFE_WORKER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/change_record.h ('k') | sync/internal_api/public/engine/polling_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698