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

Side by Side Diff: components/sync/core/write_node.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 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
« no previous file with comments | « components/sync/core/user_share.h ('k') | components/sync/core/write_transaction.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_SYNC_CORE_WRITE_NODE_H_ 5 #ifndef COMPONENTS_SYNC_CORE_WRITE_NODE_H_
6 #define COMPONENTS_SYNC_CORE_WRITE_NODE_H_ 6 #define COMPONENTS_SYNC_CORE_WRITE_NODE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "components/sync/base/model_type.h" 17 #include "components/sync/base/model_type.h"
18 #include "components/sync/base/sync_export.h"
19 #include "components/sync/core/base_node.h" 18 #include "components/sync/core/base_node.h"
20 19
21 namespace sync_pb { 20 namespace sync_pb {
22 class BookmarkSpecifics; 21 class BookmarkSpecifics;
23 class EntitySpecifics; 22 class EntitySpecifics;
24 class NigoriSpecifics; 23 class NigoriSpecifics;
25 class PasswordSpecificsData; 24 class PasswordSpecificsData;
26 class TypedUrlSpecifics; 25 class TypedUrlSpecifics;
27 } 26 }
28 27
29 namespace syncer { 28 namespace syncer {
30 29
31 class Cryptographer; 30 class Cryptographer;
32 class WriteTransaction; 31 class WriteTransaction;
33 32
34 namespace syncable { 33 namespace syncable {
35 class Id; 34 class Id;
36 class Entry; 35 class Entry;
37 class MutableEntry; 36 class MutableEntry;
38 } 37 }
39 38
40 // WriteNode extends BaseNode to add mutation, and wraps 39 // WriteNode extends BaseNode to add mutation, and wraps
41 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode. 40 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode.
42 class SYNC_EXPORT WriteNode : public BaseNode { 41 class WriteNode : public BaseNode {
43 public: 42 public:
44 enum InitUniqueByCreationResult { 43 enum InitUniqueByCreationResult {
45 INIT_SUCCESS, 44 INIT_SUCCESS,
46 // The tag passed into this method was empty. 45 // The tag passed into this method was empty.
47 INIT_FAILED_EMPTY_TAG, 46 INIT_FAILED_EMPTY_TAG,
48 // The constructor for a new MutableEntry with the specified data failed. 47 // The constructor for a new MutableEntry with the specified data failed.
49 INIT_FAILED_COULD_NOT_CREATE_ENTRY, 48 INIT_FAILED_COULD_NOT_CREATE_ENTRY,
50 // Setting the predecessor failed 49 // Setting the predecessor failed
51 INIT_FAILED_SET_PREDECESSOR, 50 INIT_FAILED_SET_PREDECESSOR,
52 // Found existing entry, but was unable to decrypt. 51 // Found existing entry, but was unable to decrypt.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 173
175 // The sync API transaction that is the parent of this node. 174 // The sync API transaction that is the parent of this node.
176 WriteTransaction* transaction_; 175 WriteTransaction* transaction_;
177 176
178 DISALLOW_COPY_AND_ASSIGN(WriteNode); 177 DISALLOW_COPY_AND_ASSIGN(WriteNode);
179 }; 178 };
180 179
181 } // namespace syncer 180 } // namespace syncer
182 181
183 #endif // COMPONENTS_SYNC_CORE_WRITE_NODE_H_ 182 #endif // COMPONENTS_SYNC_CORE_WRITE_NODE_H_
OLDNEW
« no previous file with comments | « components/sync/core/user_share.h ('k') | components/sync/core/write_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698