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

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

Issue 10699044: [Sync] Move sync/{internal_api,syncable} into syncer namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
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 syncer {
18 class Cryptographer;
19 class TestBookmarkModelAssociator;
20 }
21
22 namespace syncable {
23 class Entry;
24 class MutableEntry;
25 }
26
27 namespace sync_pb { 17 namespace sync_pb {
28 class AppSpecifics; 18 class AppSpecifics;
29 class AutofillSpecifics; 19 class AutofillSpecifics;
30 class AutofillProfileSpecifics; 20 class AutofillProfileSpecifics;
31 class BookmarkSpecifics; 21 class BookmarkSpecifics;
32 class EntitySpecifics; 22 class EntitySpecifics;
33 class ExtensionSpecifics; 23 class ExtensionSpecifics;
34 class SessionSpecifics; 24 class SessionSpecifics;
35 class NigoriSpecifics; 25 class NigoriSpecifics;
36 class PasswordSpecificsData; 26 class PasswordSpecificsData;
37 class ThemeSpecifics; 27 class ThemeSpecifics;
38 class TypedUrlSpecifics; 28 class TypedUrlSpecifics;
39 } 29 }
40 30
41 namespace syncer { 31 namespace syncer {
42 32
33 class Cryptographer;
34 class TestBookmarkModelAssociator;
43 class WriteTransaction; 35 class WriteTransaction;
44 36
37 namespace syncable {
38 class Entry;
39 class MutableEntry;
40 }
41
45 // WriteNode extends BaseNode to add mutation, and wraps 42 // WriteNode extends BaseNode to add mutation, and wraps
46 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode. 43 // syncable::MutableEntry. A WriteTransaction is needed to create a WriteNode.
47 class WriteNode : public BaseNode { 44 class WriteNode : public BaseNode {
48 public: 45 public:
49 enum InitUniqueByCreationResult { 46 enum InitUniqueByCreationResult {
50 INIT_SUCCESS, 47 INIT_SUCCESS,
51 // The tag passed into this method was empty. 48 // The tag passed into this method was empty.
52 INIT_FAILED_EMPTY_TAG, 49 INIT_FAILED_EMPTY_TAG,
53 // An entry with this tag already exists. 50 // An entry with this tag already exists.
54 INIT_FAILED_ENTRY_ALREADY_EXISTS, 51 INIT_FAILED_ENTRY_ALREADY_EXISTS,
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 192
196 // The sync API transaction that is the parent of this node. 193 // The sync API transaction that is the parent of this node.
197 WriteTransaction* transaction_; 194 WriteTransaction* transaction_;
198 195
199 DISALLOW_COPY_AND_ASSIGN(WriteNode); 196 DISALLOW_COPY_AND_ASSIGN(WriteNode);
200 }; 197 };
201 198
202 } // namespace syncer 199 } // namespace syncer
203 200
204 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_ 201 #endif // SYNC_INTERNAL_API_PUBLIC_WRITE_NODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698