| 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_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class SYNC_EXPORT WriteNode : public BaseNode { | 42 class SYNC_EXPORT WriteNode : public BaseNode { |
| 43 public: | 43 public: |
| 44 enum InitUniqueByCreationResult { | 44 enum InitUniqueByCreationResult { |
| 45 INIT_SUCCESS, | 45 INIT_SUCCESS, |
| 46 // The tag passed into this method was empty. | 46 // The tag passed into this method was empty. |
| 47 INIT_FAILED_EMPTY_TAG, | 47 INIT_FAILED_EMPTY_TAG, |
| 48 // The constructor for a new MutableEntry with the specified data failed. | 48 // The constructor for a new MutableEntry with the specified data failed. |
| 49 INIT_FAILED_COULD_NOT_CREATE_ENTRY, | 49 INIT_FAILED_COULD_NOT_CREATE_ENTRY, |
| 50 // Setting the predecessor failed | 50 // Setting the predecessor failed |
| 51 INIT_FAILED_SET_PREDECESSOR, | 51 INIT_FAILED_SET_PREDECESSOR, |
| 52 // Found existing entry, but was unable to decrypt. |
| 53 INIT_FAILED_DECRYPT_EXISTING_ENTRY, |
| 52 }; | 54 }; |
| 53 | 55 |
| 54 // Create a WriteNode using the given transaction. | 56 // Create a WriteNode using the given transaction. |
| 55 explicit WriteNode(WriteTransaction* transaction); | 57 explicit WriteNode(WriteTransaction* transaction); |
| 56 ~WriteNode() override; | 58 ~WriteNode() override; |
| 57 | 59 |
| 58 // A client must use one (and only one) of the following Init variants to | 60 // A client must use one (and only one) of the following Init variants to |
| 59 // populate the node. | 61 // populate the node. |
| 60 | 62 |
| 61 // BaseNode implementation. | 63 // BaseNode implementation. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 174 |
| 173 // The sync API transaction that is the parent of this node. | 175 // The sync API transaction that is the parent of this node. |
| 174 WriteTransaction* transaction_; | 176 WriteTransaction* transaction_; |
| 175 | 177 |
| 176 DISALLOW_COPY_AND_ASSIGN(WriteNode); | 178 DISALLOW_COPY_AND_ASSIGN(WriteNode); |
| 177 }; | 179 }; |
| 178 | 180 |
| 179 } // namespace syncer | 181 } // namespace syncer |
| 180 | 182 |
| 181 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 183 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
| OLD | NEW |