| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "sync/internal_api/public/base_node.h" | 14 #include "sync/internal_api/public/base_node.h" |
| 15 #include "sync/internal_api/public/syncable/model_type.h" | 15 #include "sync/internal_api/public/syncable/model_type.h" |
| 16 | 16 |
| 17 namespace csync { | 17 namespace syncer { |
| 18 class Cryptographer; | 18 class Cryptographer; |
| 19 class TestBookmarkModelAssociator; | 19 class TestBookmarkModelAssociator; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace syncable { | 22 namespace syncable { |
| 23 class Entry; | 23 class Entry; |
| 24 class MutableEntry; | 24 class MutableEntry; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace sync_pb { | 27 namespace sync_pb { |
| 28 class AppSpecifics; | 28 class AppSpecifics; |
| 29 class AutofillSpecifics; | 29 class AutofillSpecifics; |
| 30 class AutofillProfileSpecifics; | 30 class AutofillProfileSpecifics; |
| 31 class BookmarkSpecifics; | 31 class BookmarkSpecifics; |
| 32 class EntitySpecifics; | 32 class EntitySpecifics; |
| 33 class ExtensionSpecifics; | 33 class ExtensionSpecifics; |
| 34 class SessionSpecifics; | 34 class SessionSpecifics; |
| 35 class NigoriSpecifics; | 35 class NigoriSpecifics; |
| 36 class PasswordSpecificsData; | 36 class PasswordSpecificsData; |
| 37 class ThemeSpecifics; | 37 class ThemeSpecifics; |
| 38 class TypedUrlSpecifics; | 38 class TypedUrlSpecifics; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace csync { | 41 namespace syncer { |
| 42 | 42 |
| 43 class WriteTransaction; | 43 class WriteTransaction; |
| 44 | 44 |
| 45 // WriteNode extends BaseNode to add mutation, and wraps | 45 // WriteNode extends BaseNode to add mutation, and wraps |
| 46 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode. | 46 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode. |
| 47 class WriteNode : public BaseNode { | 47 class WriteNode : public BaseNode { |
| 48 public: | 48 public: |
| 49 enum InitUniqueByCreationResult { | 49 enum InitUniqueByCreationResult { |
| 50 INIT_SUCCESS, | 50 INIT_SUCCESS, |
| 51 // The tag passed into this method was empty. | 51 // The tag passed into this method was empty. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 // The underlying syncable object which this class wraps. | 193 // The underlying syncable object which this class wraps. |
| 194 syncable::MutableEntry* entry_; | 194 syncable::MutableEntry* entry_; |
| 195 | 195 |
| 196 // The sync API transaction that is the parent of this node. | 196 // The sync API transaction that is the parent of this node. |
| 197 WriteTransaction* transaction_; | 197 WriteTransaction* transaction_; |
| 198 | 198 |
| 199 DISALLOW_COPY_AND_ASSIGN(WriteNode); | 199 DISALLOW_COPY_AND_ASSIGN(WriteNode); |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 } // namespace csync | 202 } // namespace syncer |
| 203 | 203 |
| 204 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ | 204 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ |
| OLD | NEW |