OLD | NEW |
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 #ifndef SYNC_API_SYNC_DATA_H_ | 5 #ifndef SYNC_API_SYNC_DATA_H_ |
6 #define SYNC_API_SYNC_DATA_H_ | 6 #define SYNC_API_SYNC_DATA_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "sync/base/sync_export.h" | 14 #include "sync/base/sync_export.h" |
15 #include "sync/internal_api/public/base/model_type.h" | 15 #include "sync/internal_api/public/base/model_type.h" |
16 #include "sync/internal_api/public/util/immutable.h" | 16 #include "sync/internal_api/public/util/immutable.h" |
17 #include "sync/protocol/sync.pb.h" | |
18 | 17 |
19 namespace sync_pb { | 18 namespace sync_pb { |
20 class EntitySpecifics; | 19 class EntitySpecifics; |
21 class SyncEntity; | 20 class SyncEntity; |
22 } // namespace sync_pb | 21 } // namespace sync_pb |
23 | 22 |
24 namespace syncer { | 23 namespace syncer { |
25 | 24 |
26 // A light-weight container for immutable sync data. Pass-by-value and storage | 25 // A light-weight container for immutable sync data. Pass-by-value and storage |
27 // in STL containers are supported and encouraged if helpful. | 26 // in STL containers are supported and encouraged if helpful. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 }; | 129 }; |
131 | 130 |
132 // gmock printer helper. | 131 // gmock printer helper. |
133 void PrintTo(const SyncData& sync_data, std::ostream* os); | 132 void PrintTo(const SyncData& sync_data, std::ostream* os); |
134 | 133 |
135 typedef std::vector<SyncData> SyncDataList; | 134 typedef std::vector<SyncData> SyncDataList; |
136 | 135 |
137 } // namespace syncer | 136 } // namespace syncer |
138 | 137 |
139 #endif // SYNC_API_SYNC_DATA_H_ | 138 #endif // SYNC_API_SYNC_DATA_H_ |
OLD | NEW |