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 COMPONENTS_SYNC_CORE_BASE_NODE_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_BASE_NODE_H_ |
6 #define COMPONENTS_SYNC_CORE_BASE_NODE_H_ | 6 #define COMPONENTS_SYNC_CORE_BASE_NODE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const sync_pb::BookmarkSpecifics& GetBookmarkSpecifics() const; | 122 const sync_pb::BookmarkSpecifics& GetBookmarkSpecifics() const; |
123 | 123 |
124 // Getter specific to the NIGORI datatype. Returns protobuf | 124 // Getter specific to the NIGORI datatype. Returns protobuf |
125 // data. Can only be called if GetModelType() == NIGORI. | 125 // data. Can only be called if GetModelType() == NIGORI. |
126 const sync_pb::NigoriSpecifics& GetNigoriSpecifics() const; | 126 const sync_pb::NigoriSpecifics& GetNigoriSpecifics() const; |
127 | 127 |
128 // Getter specific to the PASSWORD datatype. Returns protobuf | 128 // Getter specific to the PASSWORD datatype. Returns protobuf |
129 // data. Can only be called if GetModelType() == PASSWORD. | 129 // data. Can only be called if GetModelType() == PASSWORD. |
130 const sync_pb::PasswordSpecificsData& GetPasswordSpecifics() const; | 130 const sync_pb::PasswordSpecificsData& GetPasswordSpecifics() const; |
131 | 131 |
| 132 // Getter specific to the PASSWORD datatype. Returns protobuf |
| 133 // metadata. Can only be called if GetModelType() == PASSWORD. |
| 134 const sync_pb::PasswordSpecificsMetadata& GetPasswordSpecificsMetadata() |
| 135 const; |
| 136 |
132 // Getter specific to the TYPED_URLS datatype. Returns protobuf | 137 // Getter specific to the TYPED_URLS datatype. Returns protobuf |
133 // data. Can only be called if GetModelType() == TYPED_URLS. | 138 // data. Can only be called if GetModelType() == TYPED_URLS. |
134 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const; | 139 const sync_pb::TypedUrlSpecifics& GetTypedUrlSpecifics() const; |
135 | 140 |
136 // Getter specific to the EXPERIMENTS datatype. Returns protobuf | 141 // Getter specific to the EXPERIMENTS datatype. Returns protobuf |
137 // data. Can only be called if GetModelType() == EXPERIMENTS. | 142 // data. Can only be called if GetModelType() == EXPERIMENTS. |
138 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; | 143 const sync_pb::ExperimentsSpecifics& GetExperimentsSpecifics() const; |
139 | 144 |
140 const sync_pb::EntitySpecifics& GetEntitySpecifics() const; | 145 const sync_pb::EntitySpecifics& GetEntitySpecifics() const; |
141 | 146 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 239 |
235 // Same as |unencrypted_data_|, but for legacy password encryption. | 240 // Same as |unencrypted_data_|, but for legacy password encryption. |
236 std::unique_ptr<sync_pb::PasswordSpecificsData> password_data_; | 241 std::unique_ptr<sync_pb::PasswordSpecificsData> password_data_; |
237 | 242 |
238 DISALLOW_COPY_AND_ASSIGN(BaseNode); | 243 DISALLOW_COPY_AND_ASSIGN(BaseNode); |
239 }; | 244 }; |
240 | 245 |
241 } // namespace syncer | 246 } // namespace syncer |
242 | 247 |
243 #endif // COMPONENTS_SYNC_CORE_BASE_NODE_H_ | 248 #endif // COMPONENTS_SYNC_CORE_BASE_NODE_H_ |
OLD | NEW |