OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ | 5 #ifndef CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ |
6 #define CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ | 6 #define CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <iosfwd> |
9 #include <string> | 10 #include <string> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
13 #include "chrome/browser/sync/syncable/model_type.h" | 14 #include "chrome/browser/sync/syncable/model_type.h" |
14 #include "chrome/browser/sync/util/immutable.h" | 15 #include "chrome/browser/sync/util/immutable.h" |
15 | 16 |
16 namespace sync_pb { | 17 namespace sync_pb { |
17 class EntitySpecifics; | 18 class EntitySpecifics; |
18 class SyncEntity; | 19 class SyncEntity; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Whether this SyncData holds valid data. | 105 // Whether this SyncData holds valid data. |
105 bool is_valid_; | 106 bool is_valid_; |
106 | 107 |
107 // Equal to sync_api::kInvalidId iff this is local. | 108 // Equal to sync_api::kInvalidId iff this is local. |
108 int64 id_; | 109 int64 id_; |
109 | 110 |
110 // The actual shared sync entity being held. | 111 // The actual shared sync entity being held. |
111 ImmutableSyncEntity immutable_entity_; | 112 ImmutableSyncEntity immutable_entity_; |
112 }; | 113 }; |
113 | 114 |
| 115 // Printing operator - helps gtest produce readable error messages. |
| 116 std::ostream& operator<<(std::ostream& os, const SyncData& sync_data); |
| 117 |
114 #endif // CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ | 118 #endif // CHROME_BROWSER_SYNC_API_SYNC_DATA_H_ |
OLD | NEW |