Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: sync/internal_api/public/write_node.h

Issue 1915983003: [Sync] Fix crash in GCP when adding encrypted entry that already exists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed HandleDecryptError() Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/sync_driver/generic_change_processor.cc ('k') | sync/internal_api/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698