| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BASE_NODE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class EntitySpecifics; | 35 class EntitySpecifics; |
| 36 class ExtensionSpecifics; | 36 class ExtensionSpecifics; |
| 37 class SessionSpecifics; | 37 class SessionSpecifics; |
| 38 class NigoriSpecifics; | 38 class NigoriSpecifics; |
| 39 class PreferenceSpecifics; | 39 class PreferenceSpecifics; |
| 40 class PasswordSpecificsData; | 40 class PasswordSpecificsData; |
| 41 class ThemeSpecifics; | 41 class ThemeSpecifics; |
| 42 class TypedUrlSpecifics; | 42 class TypedUrlSpecifics; |
| 43 } | 43 } |
| 44 | 44 |
| 45 namespace csync { | 45 namespace syncer { |
| 46 | 46 |
| 47 class BaseTransaction; | 47 class BaseTransaction; |
| 48 | 48 |
| 49 // A valid BaseNode will never have an ID of zero. | 49 // A valid BaseNode will never have an ID of zero. |
| 50 static const int64 kInvalidId = 0; | 50 static const int64 kInvalidId = 0; |
| 51 | 51 |
| 52 // BaseNode wraps syncable::Entry, and corresponds to a single object's state. | 52 // BaseNode wraps syncable::Entry, and corresponds to a single object's state. |
| 53 // This, like syncable::Entry, is intended for use on the stack. A valid | 53 // This, like syncable::Entry, is intended for use on the stack. A valid |
| 54 // transaction is necessary to create a BaseNode or any of its children. | 54 // transaction is necessary to create a BaseNode or any of its children. |
| 55 // Unlike syncable::Entry, a sync API BaseNode is identified primarily by its | 55 // Unlike syncable::Entry, a sync API BaseNode is identified primarily by its |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 // A holder for the unencrypted data stored in an encrypted node. | 244 // A holder for the unencrypted data stored in an encrypted node. |
| 245 sync_pb::EntitySpecifics unencrypted_data_; | 245 sync_pb::EntitySpecifics unencrypted_data_; |
| 246 | 246 |
| 247 // Same as |unencrypted_data_|, but for legacy password encryption. | 247 // Same as |unencrypted_data_|, but for legacy password encryption. |
| 248 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; | 248 scoped_ptr<sync_pb::PasswordSpecificsData> password_data_; |
| 249 | 249 |
| 250 DISALLOW_COPY_AND_ASSIGN(BaseNode); | 250 DISALLOW_COPY_AND_ASSIGN(BaseNode); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 } // namespace csync | 253 } // namespace syncer |
| 254 | 254 |
| 255 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ | 255 #endif // SYNC_INTERNAL_API_PUBLIC_BASE_NODE_H_ |
| OLD | NEW |